public LiveReportInputFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "entryIds": this._EntryIds = propertyNode.InnerText; continue; case "fromTime": this._FromTime = ParseInt(propertyNode.InnerText); continue; case "toTime": this._ToTime = ParseInt(propertyNode.InnerText); continue; case "live": this._Live = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (LiveReportOrderBy)StringEnum.Parse(typeof(LiveReportOrderBy), propertyNode.InnerText); continue; } } }
public LiveReportInputFilter(JToken node) : base(node) { if (node["entryIds"] != null) { this._EntryIds = node["entryIds"].Value <string>(); } if (node["fromTime"] != null) { this._FromTime = ParseInt(node["fromTime"].Value <string>()); } if (node["toTime"] != null) { this._ToTime = ParseInt(node["toTime"].Value <string>()); } if (node["live"] != null) { this._Live = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["live"].Value <string>()); } if (node["orderBy"] != null) { this._OrderBy = (LiveReportOrderBy)StringEnum.Parse(typeof(LiveReportOrderBy), node["orderBy"].Value <string>()); } }