MessagesTrait.PresentMessagesRequestCommand.Request

class MessagesTrait.PresentMessagesRequestCommand.Request


The request payload for the PresentMessagesRequest command.

Summary

Public constructors

Request(
    messageId: ByteArray,
    priority: MessagesTrait.MessagePriorityEnum,
    messageControl: MessagesTrait.MessageControlBitmap,
    startTime: UInt?,
    duration: ULong?,
    messageText: String,
    responses: OptionalValue<List<MessagesTrait.MessageResponseOptionStruct>>
)

Creates a request payload for the PresentMessagesRequest command.

Public properties

ULong?

The amount of time, in milliseconds, after the startTime during which the message is available to be presented.

MessagesTrait.MessageControlBitmap

The control information related to the message.

ByteArray

Globally unique ID of the message.

String

A string that contains the message to be presented to the user.

MessagesTrait.MessagePriorityEnum

The priority level for this message.

OptionalValue<List<MessagesTrait.MessageResponseOptionStruct>>

A list of responses that the user can select to dismiss the message.

UInt?

The time, in UTC, at which the message becomes available to be presented.

Public constructors

Request

Request(
    messageId: ByteArray = ByteArray(0),
    priority: MessagesTrait.MessagePriorityEnum = MessagePriorityEnum.Low,
    messageControl: MessagesTrait.MessageControlBitmap = MessageControlBitmap(),
    startTime: UInt? = null,
    duration: ULong? = null,
    messageText: String = "",
    responses: OptionalValue<List<MessagesTrait.MessageResponseOptionStruct>> = OptionalValue.absent()
)

Creates a request payload for the PresentMessagesRequest command.

Public properties

duration

val durationULong?

The amount of time, in milliseconds, after the startTime during which the message is available to be presented. A null value means that the duration time remains the same until it's actively changed.

messageControl

val messageControlMessagesTrait.MessageControlBitmap

The control information related to the message.

messageId

val messageIdByteArray

Globally unique ID of the message.

messageText

val messageTextString

A string that contains the message to be presented to the user.

priority

val priorityMessagesTrait.MessagePriorityEnum

The priority level for this message.

responses

val responsesOptionalValue<List<MessagesTrait.MessageResponseOptionStruct>>

A list of responses that the user can select to dismiss the message.

startTime

val startTimeUInt?

The time, in UTC, at which the message becomes available to be presented. A null value indicates that the message is available immediately.