/// <summary>
        /// transform the datas to JSON
        /// </summary>
        /// <returns>the data as a JSON</returns>
        internal JSONDatas toJson()
        {
            JSONDatas jsonDatas = new JSONDatas();

            jsonDatas.aw = this.actionWord.ToString();
            if (this.unknownWord != null)
            {
                jsonDatas.unknownWord = this.unknownWord.ToString();
            }
            if (this.GestureDatas != null)
            {
                jsonDatas.GestureDatas = this.GestureDatas.toJson();
            }

            return(jsonDatas);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// transform the datas to JSON
        /// </summary>
        /// <returns>the data as a JSON</returns>
        internal JSONDatas toJson()
        {
            JSONDatas jsonDatas = new JSONDatas();

            jsonDatas.aw = this.actionWord.ToString();
            if (this.unknownWord != null) jsonDatas.unknownWord = this.unknownWord.ToString();
            if (this.GestureDatas != null) jsonDatas.GestureDatas = this.GestureDatas.toJson();

            return jsonDatas;
        }