コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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;
        }