public CategoryEntryAdvancedFilter(JToken node) : base(node)
 {
     if (node["categoriesMatchOr"] != null)
     {
         this._CategoriesMatchOr = node["categoriesMatchOr"].Value <string>();
     }
     if (node["categoryEntryStatusIn"] != null)
     {
         this._CategoryEntryStatusIn = node["categoryEntryStatusIn"].Value <string>();
     }
     if (node["orderBy"] != null)
     {
         this._OrderBy = (CategoryEntryAdvancedOrderBy)StringEnum.Parse(typeof(CategoryEntryAdvancedOrderBy), node["orderBy"].Value <string>());
     }
     if (node["categoryIdEqual"] != null)
     {
         this._CategoryIdEqual = ParseInt(node["categoryIdEqual"].Value <string>());
     }
 }
Exemplo n.º 2
0
        public CategoryEntryAdvancedFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "categoriesMatchOr":
                    this._CategoriesMatchOr = propertyNode.InnerText;
                    continue;

                case "categoryEntryStatusIn":
                    this._CategoryEntryStatusIn = propertyNode.InnerText;
                    continue;

                case "orderBy":
                    this._OrderBy = (CategoryEntryAdvancedOrderBy)StringEnum.Parse(typeof(CategoryEntryAdvancedOrderBy), propertyNode.InnerText);
                    continue;

                case "categoryIdEqual":
                    this._CategoryIdEqual = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }