Conversation

data class Conversation(val applicationDisplayName: StringResolver = StaticStringResolver(""), val capabilities: EnumSet<ConversationCapability> = ConversationCapability.NO_CAPABILITIES, val contacts: Set<ConversationContact> = emptySet(), val id: Uid<Conversation>, val messageType: MessageType = MessageType(""), val source: ConversationSource? = null, val unreadMessages: List<Uid<Message>> = emptyList()) : Parcelable

Represents a conversation between the user and one or more contacts.

Constructors

Link copied to clipboard
constructor(applicationDisplayName: StringResolver = StaticStringResolver(""), capabilities: EnumSet<ConversationCapability> = ConversationCapability.NO_CAPABILITIES, contacts: Set<ConversationContact> = emptySet(), id: Uid<Conversation>, messageType: MessageType = MessageType(""), source: ConversationSource? = null, unreadMessages: List<Uid<Message>> = emptyList())

Properties

Link copied to clipboard
val applicationDisplayName: StringResolver

The display name of the messaging application to which the conversation belongs.

Link copied to clipboard

The capabilities for this conversation.

Link copied to clipboard

The contacts whose messages are inside this conversation.

Link copied to clipboard

The universally unique ID of the conversation.

Link copied to clipboard

The type of messages in this conversation.

Link copied to clipboard

The source from which this conversation originates, or null if unknown.

Link copied to clipboard

The unique IDs of all the unread messages in this conversation, in chronological order.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)