CommandMessage

public class CommandMessage

Command Message Class

Command message class. This type of message is neither stored nor counted in the unread message count. The difference between this and CommandNotificationMessage is that this message is not stored and will not be displayed in the UI.

Constructors

Link copied to clipboard
public void CommandMessage(Array<byte> data)
public void CommandMessage(Parcel in)

Properties

Link copied to clipboard
public final static Creator<CommandMessage> CREATOR
Link copied to clipboard
public String data
Link copied to clipboard
public String name

Functions

Link copied to clipboard
public int describeContents()
Describes the type of special objects included in the Parcelable object's arrangement information.
Link copied to clipboard
public Array<byte> encode()
Link copied to clipboard
public String getData()
Retrieves command data, which can be in any format, such as JSON.
Link copied to clipboard
public String getName()
Retrieves the command name.
Link copied to clipboard
public static CommandMessage obtain(String name, String data)
Creates a message instance.
Link copied to clipboard
public void setData(String data)
Sets the command data, which can be in any format, such as JSON.
Link copied to clipboard
public void setName(String name)
Sets the command name.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)
Writes the class's data into the provided Parcel.