MessageInfo

data class MessageInfo(val id: String, val user: User, val type: String, val textMessage: TextMessage? = null, val customMessage: CustomMessage? = null, val entranceMessage: EntranceMessage? = null, val customCounter: CustomCounter? = null, val broadcastMessage: BroadcastMessage? = null, val pinUnpinMessage: PinUnpinMessage? = null, val blockUnblockUser: BlockUnblockUser? = null, val deleteMessage: DeleteMessage? = null, val viewerInfo: ViewerInfo? = null, val timestampCreatedAt: String, val timestampSentAt: String, val timestampReceivedAt: String, val timestampPublishedAt: String, val unixTimestampCreatedAt: Long, val unixTimestampSentAt: Long, val unixTimestampReceivedAt: Long, val unixTimestampPublishedAt: Long, val isLocalCustomMessage: Boolean? = false) : Parcelable

Represents information about a message.

Constructors

Link copied to clipboard
constructor(id: String, user: User, type: String, textMessage: TextMessage? = null, customMessage: CustomMessage? = null, entranceMessage: EntranceMessage? = null, customCounter: CustomCounter? = null, broadcastMessage: BroadcastMessage? = null, pinUnpinMessage: PinUnpinMessage? = null, blockUnblockUser: BlockUnblockUser? = null, deleteMessage: DeleteMessage? = null, viewerInfo: ViewerInfo? = null, timestampCreatedAt: String, timestampSentAt: String, timestampReceivedAt: String, timestampPublishedAt: String, unixTimestampCreatedAt: Long, unixTimestampSentAt: Long, unixTimestampReceivedAt: Long, unixTimestampPublishedAt: Long, isLocalCustomMessage: Boolean? = false)

Properties

Link copied to clipboard
@SerializedName(value = "block_unblock_user")
val blockUnblockUser: BlockUnblockUser? = null

Information about blocking/unblocking a user (nullable).

Link copied to clipboard
@SerializedName(value = "broadcast_message")
val broadcastMessage: BroadcastMessage? = null

Broadcast message content (nullable).

Link copied to clipboard
@SerializedName(value = "custom_counter")
val customCounter: CustomCounter? = null

Custom counter content (nullable).

Link copied to clipboard
@SerializedName(value = "custom_message")
val customMessage: CustomMessage? = null

Custom message content (nullable).

Link copied to clipboard
@SerializedName(value = "delete_message")
val deleteMessage: DeleteMessage? = null

Information about deleting a message (nullable).

Link copied to clipboard
@SerializedName(value = "entrance_message")
val entranceMessage: EntranceMessage? = null

Entrance message content (nullable).

Link copied to clipboard
@SerializedName(value = "id")
val id: String

Unique identifier for the message.

Link copied to clipboard
@SerializedName(value = "is_local_custom_message")
val isLocalCustomMessage: Boolean? = false
Link copied to clipboard
@SerializedName(value = "pin_unpin_message")
val pinUnpinMessage: PinUnpinMessage? = null

Information about pinning/unpinning a message (nullable).

Link copied to clipboard
@SerializedName(value = "text_message")
val textMessage: TextMessage? = null

Text message content (nullable).

Link copied to clipboard
@SerializedName(value = "created_at")
val timestampCreatedAt: String

Timestamp when the message was created.

Link copied to clipboard
@SerializedName(value = "published_at")
val timestampPublishedAt: String

Timestamp when the message was published.

Link copied to clipboard
@SerializedName(value = "received_at")
val timestampReceivedAt: String

Timestamp when the message was received.

Link copied to clipboard
@SerializedName(value = "sent_at")
val timestampSentAt: String

Timestamp when the message was sent.

Link copied to clipboard
@SerializedName(value = "type")
val type: String

Type of the message.

Link copied to clipboard
@SerializedName(value = "unixTimestampCreatedAt")
val unixTimestampCreatedAt: Long

Unix timestamp when the message was created.

Link copied to clipboard
@SerializedName(value = "unixTimestampPublishedAt")
val unixTimestampPublishedAt: Long

Unix timestamp when the message was published.

Link copied to clipboard
@SerializedName(value = "unixTimestampReceivedAt")
val unixTimestampReceivedAt: Long

Unix timestamp when the message was received.

Link copied to clipboard
@SerializedName(value = "unixTimestampSentAt")
val unixTimestampSentAt: Long

Unix timestamp when the message was sent.

Link copied to clipboard
@SerializedName(value = "user")
val user: User

User who sent the message.

Link copied to clipboard
@SerializedName(value = "viewer_info")
val viewerInfo: ViewerInfo? = null

Information about viewers (nullable).

Functions

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