/// <summary> /// transform datas to a JSON object /// </summary> /// <returns>the datas as a JSON object</returns> public JSONMessageReceived ToJson() { JSONMessageReceived m = new JSONMessageReceived(); if (this.context != null) { m.context = this.context; } if (this.keyboard != null) { m.keyboard = this.keyboard; } return(m); }
/// <summary> /// transform datas to a JSON object /// </summary> /// <returns>the datas as a JSON object</returns> public JSONMessageReceived ToJson() { JSONMessageReceived m = new JSONMessageReceived(); if (this.context != null) m.context = this.context; if (this.keyboard != null) m.keyboard = this.keyboard; return m; }