Messaging
Table of Contents
State
Text
Declaration
getText()
Discussion
The text
Example
val state:Messaging.State
assertTrue(state.text.value == "Hey mom!")
// Message text says 'Hey mom!'
Handle
Declaration
getHandle()
Discussion
The optional handle of message
Example
val state:Messaging.State
assertTrue(state.handle.value == "Epp")
// Name of the sender/receiver is 'Epp'
Setters
Message received
Declaration
public MessageReceived(String text, @Nullable String handle)
Example
val messageReceived = Messaging.MessageReceived("Hey mom!", "Epp")