MessageBuilder
Builds a POCO object that can be sent to a remote peer via IRemoteSupportClient.sendCommand, IRemoteSupportClient.sendNotification, and IRemoteSupportClient.sendQuery
Should be fetched via the IRemoteSupportClient.getMessageBuilder to ensure there are no differences between the MessageCategory used to initialize them, as this can lead to issues decoding/encoding messages.
Constructors
Functions
Link copied to clipboard
fun buildCommand( data: TaggedValue, category: IUserMessageCategory, acknowledgeOn: Byte = CommandAcknowledgementType.received): Command
Content copied to clipboard
Builds a new Command with the given parameters
Link copied to clipboard
fun buildNotification(data: TaggedValue, category: IUserMessageCategory): Notification
Content copied to clipboard
Builds a new Notification with the given parameters
Link copied to clipboard
Builds a new Query with the given parameters