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; }
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); }