Ejemplo n.º 1
0
 public JsonApiObject(JsonApiContextTypes contextType, JsonApiMessageTypes messageType, string messageCode, Dictionary <string, dynamic> data = null)
 {
     context      = contextType;
     message_type = messageType;
     message_code = messageCode;
     this.data    = data;
 }
Ejemplo n.º 2
0
 private static JsonApiObject CreateContextDevice(JsonApiMessageTypes msgType, DeviceRequestCode msgCode, Dictionary <string, dynamic> data = null)
 {
     return(new JsonApiObject(JsonApiContextTypes.device, msgType, msgCode.ToString(), data));
 }