public DropFolderFilter(JToken node) : base(node) { if (node["currentDc"] != null) { this._CurrentDc = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["currentDc"].Value <string>()); } if (node["orderBy"] != null) { this._OrderBy = (DropFolderOrderBy)StringEnum.Parse(typeof(DropFolderOrderBy), node["orderBy"].Value <string>()); } }
public DropFolderFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "currentDc": this._CurrentDc = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "orderBy": this._OrderBy = (DropFolderOrderBy)StringEnum.Parse(typeof(DropFolderOrderBy), propertyNode.InnerText); continue; } } }