customer-android-kotlin

//core/com.kustomer.core.models.chat/KusConversation

KusConversation

[androidJvm]
@JsonClass(generateAdapter = true)

data class KusConversation(var id: String = "", var preview: KusConversationPreview? = null, val trackingId: String?, val responders: List<String>? = null, var lastMessageAt: Long? = 0, val createdAt: Long? = 0, var lockedAt: Long?, var lockedByCustomer: Boolean? = null, var lockReason: String? = null, val satisfaction: KusConversationCsat?, var unreadMessageCount: Int = 0, var users: Set<KusUser>? = null, @Json(name = "pubnub")val channelInfo: KusChannelInfo, var rawJson: String? = null, val isInAssistantMode: Boolean = false, @Json(name = "deleted")var isDeleted: Boolean? = false, @Json(name = "brand")var brandId: String?, var mergedTo: String? = null)

Constructors

   
KusConversation [androidJvm]
fun KusConversation(id: String = "", preview: KusConversationPreview? = null, trackingId: String?, responders: List<String>? = null, lastMessageAt: Long? = 0, createdAt: Long? = 0, lockedAt: Long?, lockedByCustomer: Boolean? = null, lockReason: String? = null, satisfaction: KusConversationCsat?, unreadMessageCount: Int = 0, users: Set<KusUser>? = null, @Json(name = "pubnub")channelInfo: KusChannelInfo, rawJson: String? = null, isInAssistantMode: Boolean = false, @Json(name = "deleted")isDeleted: Boolean? = false, @Json(name = "brand")brandId: String?, mergedTo: String? = null)

Functions

Name Summary
isConversationClosed [androidJvm]
fun isConversationClosed(): Boolean
isConversationDeleted [androidJvm]
fun isConversationDeleted(): Boolean
isDraftConversation [androidJvm]
fun isDraftConversation(): Boolean

Properties

Name Summary
brandId [androidJvm]
var brandId: String?
channelInfo [androidJvm]
val channelInfo: KusChannelInfo
createdAt [androidJvm]
val createdAt: Long? = 0
id [androidJvm]
@Transient
var id: String
Conversation id
isDeleted [androidJvm]
var isDeleted: Boolean? = false
isInAssistantMode [androidJvm]
val isInAssistantMode: Boolean = false
lastMessageAt [androidJvm]
var lastMessageAt: Long? = 0
lockedAt [androidJvm]
var lockedAt: Long?
lockedByCustomer [androidJvm]
var lockedByCustomer: Boolean? = null
lockReason [androidJvm]
var lockReason: String? = null
mergedTo [androidJvm]
@Transient
var mergedTo: String? = null
preview [androidJvm]
var preview: KusConversationPreview? = null
Last message text
rawJson [androidJvm]
var rawJson: String? = null
responders [androidJvm]
val responders: List<String>? = null
satisfaction [androidJvm]
val satisfaction: KusConversationCsat?
trackingId [androidJvm]
val trackingId: String?
unreadMessageCount [androidJvm]
@Transient
var unreadMessageCount: Int = 0
users [androidJvm]
@Transient
var users: Set<KusUser>? = null