public EntryScheduleEventFilter(JToken node) : base(node) { if (node["parentCategoryIdsLike"] != null) { this._ParentCategoryIdsLike = node["parentCategoryIdsLike"].Value <string>(); } if (node["parentCategoryIdsMultiLikeOr"] != null) { this._ParentCategoryIdsMultiLikeOr = node["parentCategoryIdsMultiLikeOr"].Value <string>(); } if (node["parentCategoryIdsMultiLikeAnd"] != null) { this._ParentCategoryIdsMultiLikeAnd = node["parentCategoryIdsMultiLikeAnd"].Value <string>(); } if (node["orderBy"] != null) { this._OrderBy = (EntryScheduleEventOrderBy)StringEnum.Parse(typeof(EntryScheduleEventOrderBy), node["orderBy"].Value <string>()); } }
public EntryScheduleEventFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "parentCategoryIdsLike": this._ParentCategoryIdsLike = propertyNode.InnerText; continue; case "parentCategoryIdsMultiLikeOr": this._ParentCategoryIdsMultiLikeOr = propertyNode.InnerText; continue; case "parentCategoryIdsMultiLikeAnd": this._ParentCategoryIdsMultiLikeAnd = propertyNode.InnerText; continue; case "orderBy": this._OrderBy = (EntryScheduleEventOrderBy)StringEnum.Parse(typeof(EntryScheduleEventOrderBy), propertyNode.InnerText); continue; } } }