Ejemplo n.º 1
0
        public JSONActionArg ToJson()
        {
            JSONActionArg jsonAction = new JSONActionArg
            {
                name = this.name.ToString(),
                TimeStamp = this.TimeStamp.ToString(),
                events = new List<JSONQlikMoveEventArgs>()
            };

            foreach (QlikMoveEventArgs e in this.events)
            {
                jsonAction.events.Add(new JSONQlikMoveEventArgs{
                    eventType = e.eventType.ToString(),
                    timeStamp = e.timeStamp.ToString(),
                    datas = e.datas.toJson()
                });
            }

            return jsonAction;
        }
Ejemplo n.º 2
0
        public JSONActionArg ToJson()
        {
            JSONActionArg jsonAction = new JSONActionArg
            {
                name      = this.name.ToString(),
                TimeStamp = this.TimeStamp.ToString(),
                events    = new List <JSONQlikMoveEventArgs>()
            };

            foreach (QlikMoveEventArgs e in this.events)
            {
                jsonAction.events.Add(new JSONQlikMoveEventArgs {
                    eventType = e.eventType.ToString(),
                    timeStamp = e.timeStamp.ToString(),
                    datas     = e.datas.toJson()
                });
            }

            return(jsonAction);
        }