コード例 #1
0
        /// <summary>
        /// trnasform the datas to JSON
        /// </summary>
        /// <returns>the datas as a JSON</returns>
        internal JSONGestureDatas toJson()
        {
            JSONGestureDatas jsonGestureEvent = new JSONGestureDatas();

            if (this.bodyGestureEventData != null)
            {
                jsonGestureEvent.bodyGestureEventData = this.bodyGestureEventData.toJson();
            }
            if (this.handGestureEventData != null)
            {
                jsonGestureEvent.handGestureEventData = this.handGestureEventData.toJson();
            }

            return jsonGestureEvent;
        }
コード例 #2
0
        /// <summary>
        /// trnasform the datas to JSON
        /// </summary>
        /// <returns>the datas as a JSON</returns>
        internal JSONGestureDatas toJson()
        {
            JSONGestureDatas jsonGestureEvent = new JSONGestureDatas();

            if (this.bodyGestureEventData != null)
            {
                jsonGestureEvent.bodyGestureEventData = this.bodyGestureEventData.toJson();
            }
            if (this.handGestureEventData != null)
            {
                jsonGestureEvent.handGestureEventData = this.handGestureEventData.toJson();
            }


            return(jsonGestureEvent);
        }