Appcelerator.Message.GetMessageJSON C# (CSharp) Method

GetMessageJSON() public method

public GetMessageJSON ( ) : string
return string
        public string GetMessageJSON()
        {
            /*
              Message schema:
                  type: the message type
                  version: the version of the service to access
                  scope: the scope of this message
                  requestid: the id of this request
                  data: a JSON object containing the data payload
             */
            String json = "{type:'"+type+"',version:'"+version+"',scope:'"+scope+"',data:";
            json += Payload;
            json += "}";
            return json;
        }