Gets the message whose index was selected by the choice messaging block.
_Payload_type const & value();
The type of the message payload.
The payload of the message.
Since a choice messaging block can take inputs with different payload types, you must specify the type of the payload at the point of retrieval. You can determine the type based on the result of the index method.