/*
 * F7cloud Talk - Android Client
 *
 * SPDX-FileCopyrightText: 2025 Marcel Hibbe <dev@mhibbe.de>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

package ru.f7cloud.talk.data.source.local.converters

import androidx.room.TypeConverter
import ru.f7cloud.talk.data.database.model.SendStatus

class SendStatusConverter {
    @TypeConverter
    fun fromStatus(value: SendStatus): String = value.name

    @TypeConverter
    fun toStatus(value: String): SendStatus = SendStatus.valueOf(value)
}
