package com.rosetta.messenger.network

enum class GroupStatus(val value: Int) {
    JOINED(0),
    INVALID(1),
    NOT_JOINED(2),
    BANNED(3);

    companion object {
        fun fromInt(value: Int): GroupStatus = entries.firstOrNull { it.value == value } ?: NOT_JOINED
    }
}
