Пример #1
0
 public PlaylistFilter(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         switch (propertyNode.Name)
         {
         case "orderBy":
             this._OrderBy = (PlaylistOrderBy)StringEnum.Parse(typeof(PlaylistOrderBy), propertyNode.InnerText);
             continue;
         }
     }
 }
 public PlaylistFilter(JToken node) : base(node)
 {
     if (node["playListTypeEqual"] != null)
     {
         this._PlayListTypeEqual = (PlaylistType)ParseEnum(typeof(PlaylistType), node["playListTypeEqual"].Value <string>());
     }
     if (node["playListTypeIn"] != null)
     {
         this._PlayListTypeIn = node["playListTypeIn"].Value <string>();
     }
     if (node["orderBy"] != null)
     {
         this._OrderBy = (PlaylistOrderBy)StringEnum.Parse(typeof(PlaylistOrderBy), node["orderBy"].Value <string>());
     }
 }