TextOnly
Represents a message that contains only text.
Constructors
TextOnly(text: String
)Creates an outbound text message.
Throws IllegalArgumentException if the text is an empty string or its length exceeds KitChat.MAX_TEXT_LENGTH.
Parameters
text:
String
Message text.
Throws
IllegalArgumentException if the text is empty or its length exceeds KitChat.MAX_TEXT_LENGTH.
Methods
fun equals(other: Any?
): Boolean
Parameters
other:
Any?
Returns
type:
Boolean
fun hashCode(): Int
Returns
type:
Int
fun toString(): String
Returns
type:
String
Props
val date: Long?
Message timestamp in milliseconds.
Available only if the message is sent.
Returns
type:
Long?
val requestId: String?
Temporary message id.
Available only if the message is sent from an application.
Returns
type:
String?
val text: String
Message text. Cannot be empty.
Returns
type:
String
val uuid: String?
Universal unique ID of the message.
Null for the messages that have not yet been sent from an application, i.e. created or currently being sent via KitChat.sendMessage.
Non null for inbound messages.
Returns
type:
String?