Message

data class Message(val id: String, val sender: Sender, val text: String) : Parcelable

Represents a message.

Constructors

Link copied to clipboard
constructor(id: String, sender: Sender, text: String)

Properties

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

Unique identifier for the message.

Link copied to clipboard
@SerializedName(value = "sender")
val sender: Sender

Sender of the message.

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

Text content of the message.

Functions

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