Message structure
All the message sent to the SDK or received from the SDK are based on the same JSON structure :
Overview
type
: String indicating the message typeauthor
: message authorrecipients
: recipients list of the message (generally one recipient)status
: string containing the message statusmapMode
: string containing the map webpage mode (when information is sent by the webpage)payload
: a JSON object containing the message values
Possible values for status
SENT
: Used when a process sends a messageRECEIVED
: Used to resend a message when a third process needs to acknowledge the message (few messages concerned)ERROR
: When the message cannot be sent
Example
{
"type": "<message type",
"payload": {<message content>},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"mapMode": "<map mode status",
"status": "SENT"
}