Message

data class Message(isSystem: Boolean, content: String, imageURL: String) : Parcelable

A simple data class that describes a message in Spokestack. Messages have text or image contents and can be initiated by the user or the system.

Constructors

Message
Link copied to clipboard
fun Message(parcel: Parcel)
Message
Link copied to clipboard
fun Message(isSystem: Boolean = false, content: String, imageURL: String = "")

Types

CREATOR
Link copied to clipboard
object CREATOR : Parcelable.Creator<Message>

Functions

describeContents
Link copied to clipboard
open override fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
writeToParcel
Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)

Properties

content
Link copied to clipboard
val content: String
imageURL
Link copied to clipboard
val imageURL: String
isSystem
Link copied to clipboard
val isSystem: Boolean = false