package ru.forbion.f7cloud.feature.talk

data class TalkRoom(
    val token: String,
    val displayName: String,
    val type: Int = 0,
    val unreadMessages: Int = 0,
    val unreadMention: Boolean = false,
    val hasCall: Boolean = false,
    val isFavorite: Boolean = false,
    val lastActivity: Long = 0L,
    val lastMessagePreview: String = "",
    val lastMessageTimestamp: Long = 0L,
    val actorId: String = "",
    val actorType: String = "",
    val lastReadMessage: Long = 0L,
) {
    val hasUnread: Boolean get() = unreadMessages > 0 || unreadMention
}
