nn::cec::CTR::Message Classclass Message
Class that handles CEC Message objects.
MessageIDMessageBox::WriteMessage when it writes the message to a box.GroupIDGroupId.GroupId, then any other messages in the outbox with that same group ID will be sent together with it.MessageTypeFlag values and the same GroupId.
MessageTypeFlagMESSAGE_TYPEFLAG_ANYONE to send regardless of whether the peer is a friend.MESSAGE_TYPEFLAG_FRIEND to only send to peers that are registered as friends.MESSAGE_TYPEFLAG_NON_FRIEND to only send to peers that are not registered as friends.SendModeSENDMODE_RECV: Receive onlySENDMODE_SEND: Send onlySENDMODE_SENDRECV: Send and receiveSENDMODE_EXCHANGE: ExchangeMESSAGE_SENDCOUNT_UNLIMITED to the send count, this value is not decremented and the data are sent repeatedly.| New Message Creation | ||
|---|---|---|
NewMessage
|
Creates a new message. | |
| Parameters | ||
GetCecTitleId
|
Gets the StreetPass ID of the Message. | |
SetGroupID
|
Sets the Group ID for a Message. Messages in the outbox with the same GroupID are grouped and sent together. |
|
GetGroupID
|
Gets the Group ID of a message. Messages in the outbox with the same GroupID are grouped and sent together. |
|
GetMessSize
|
Gets the size of a message. | |
GetMessageSize
|
Gets the size of a message. | |
GetHeaderSize
|
Gets the size of a message header (including the extended header). | |
GetBodySize
|
Gets the size of the body of a message. | |
GetMessageId
|
Gets the MessageID for a Message. The MessageID is assigned when a message is created and then saved. |
|
GetMessageId_Pair
|
Gets the MessageID for the exchanged Message. If communication takes place with the "exchange" mode specified, the message ID of the message sent by the other peer (forming the pair) is recorded in the received message. |
|
SetMessageTypeFlag
|
Specifies the recipients using the MessageTypeFlag enumerated type. |
|
GetMessageTypeFlag
|
Gets the value specified for the message to be sent. | |
SetSendMode
|
Specifies the send mode (receive only, send only, send and receive, or exchange) using the SendMode enumerated type. |
|
GetSendMode
|
Gets the send mode (receive only, send only, send and receive, or exchange). | |
GetSendDate
|
Gets the timestamp of when a received message was sent (when StreetPass occurred). This is the time according to the sender's clock. | |
GetRecvDate
|
Gets the timestamp of when a received message was received (when StreetPass occurred). This is the time according to the recipient's clock. | |
GetCreateDate
|
Gets the creation timestamp of a message. | |
SetSendCount
|
Specifies the send count. The send count is decremented by one with each send. The data is no longer sent once the count reaches zero. | |
GetSendCount
|
Gets the send count. The send count is decremented by one with each send. The data is no longer sent once the count reaches zero. | |
SetPropagationCount
|
Specifies the propagation count. The propagation count is decremented by one upon reception. The data is copied to the outbox if the count is still 1 or greater. |
|
GetPropagationCount
|
Gets the propagation count. The propagation count is decremented by one upon reception. The data is copied to the outbox if the count is still 1 or greater. |
|
SetTag
|
Sets the 16-bit value in the header of the Message. | |
GetTag
|
Gets the Tag value from the header of a message. |
|
SetExHeader
|
Sets the extended header data for a message. | |
GetExHeader
|
Gets data from the extended header of a message. | |
SetIcon
|
Sets an icon for a message. | |
GetIcon
|
Gets an icon from a Message. | |
SetInfoText
|
Sets the information text of a Message. | |
GetInfoText
|
Gets the description of a Message. | |
SetMessageBody
|
Sets the data body of a message. | |
GetMessageBody
|
Gets the body data of a Message. | |
GetMessageBodyPointer
|
Gets a pointer to the body data of a Message. | |
| Other | ||
Message
|
Constructor. | |
| ~Message | Destructor. | |
CONFIDENTIAL