コード例 #1
0
 public MediaEntryFilter(JToken node) : base(node)
 {
     if (node["orderBy"] != null)
     {
         this._OrderBy = (MediaEntryOrderBy)StringEnum.Parse(typeof(MediaEntryOrderBy), node["orderBy"].Value <string>());
     }
 }
コード例 #2
0
		public MediaEntryFilter(XmlElement node) : base(node)
		{
			foreach (XmlElement propertyNode in node.ChildNodes)
			{
				switch (propertyNode.Name)
				{
					case "orderBy":
						this._OrderBy = (MediaEntryOrderBy)StringEnum.Parse(typeof(MediaEntryOrderBy), propertyNode.InnerText);
						continue;
				}
			}
		}