public CategoryEntry(JToken node) : base(node)
 {
     if (node["categoryId"] != null)
     {
         this._CategoryId = ParseInt(node["categoryId"].Value <string>());
     }
     if (node["entryId"] != null)
     {
         this._EntryId = node["entryId"].Value <string>();
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["categoryFullIds"] != null)
     {
         this._CategoryFullIds = node["categoryFullIds"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), node["status"].Value <string>());
     }
     if (node["creatorUserId"] != null)
     {
         this._CreatorUserId = node["creatorUserId"].Value <string>();
     }
 }
Example #2
0
        public CategoryEntry(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "categoryId":
                    this._CategoryId = ParseInt(propertyNode.InnerText);
                    continue;

                case "entryId":
                    this._EntryId = propertyNode.InnerText;
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "categoryFullIds":
                    this._CategoryFullIds = propertyNode.InnerText;
                    continue;

                case "status":
                    this._Status = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), propertyNode.InnerText);
                    continue;

                case "creatorUserId":
                    this._CreatorUserId = propertyNode.InnerText;
                    continue;
                }
            }
        }
Example #3
0
 public ESearchCategoryEntryItem(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = (ESearchCategoryEntryFieldName)StringEnum.Parse(typeof(ESearchCategoryEntryFieldName), node["fieldName"].Value <string>());
     }
     if (node["categoryEntryStatus"] != null)
     {
         this._CategoryEntryStatus = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), node["categoryEntryStatus"].Value <string>());
     }
 }
        public CategoryEntryBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "categoryIdEqual":
                    this._CategoryIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "categoryIdIn":
                    this._CategoryIdIn = propertyNode.InnerText;
                    continue;

                case "entryIdEqual":
                    this._EntryIdEqual = propertyNode.InnerText;
                    continue;

                case "entryIdIn":
                    this._EntryIdIn = propertyNode.InnerText;
                    continue;

                case "createdAtGreaterThanOrEqual":
                    this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtLessThanOrEqual":
                    this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "categoryFullIdsStartsWith":
                    this._CategoryFullIdsStartsWith = propertyNode.InnerText;
                    continue;

                case "statusEqual":
                    this._StatusEqual = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), propertyNode.InnerText);
                    continue;

                case "statusIn":
                    this._StatusIn = propertyNode.InnerText;
                    continue;

                case "creatorUserIdEqual":
                    this._CreatorUserIdEqual = propertyNode.InnerText;
                    continue;

                case "creatorUserIdIn":
                    this._CreatorUserIdIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
        public ESearchCategoryEntryItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "fieldName":
                    this._FieldName = (ESearchCategoryEntryFieldName)StringEnum.Parse(typeof(ESearchCategoryEntryFieldName), propertyNode.InnerText);
                    continue;

                case "categoryEntryStatus":
                    this._CategoryEntryStatus = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), propertyNode.InnerText);
                    continue;
                }
            }
        }
 public CategoryEntryBaseFilter(JToken node) : base(node)
 {
     if (node["categoryIdEqual"] != null)
     {
         this._CategoryIdEqual = ParseInt(node["categoryIdEqual"].Value <string>());
     }
     if (node["categoryIdIn"] != null)
     {
         this._CategoryIdIn = node["categoryIdIn"].Value <string>();
     }
     if (node["entryIdEqual"] != null)
     {
         this._EntryIdEqual = node["entryIdEqual"].Value <string>();
     }
     if (node["entryIdIn"] != null)
     {
         this._EntryIdIn = node["entryIdIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["categoryFullIdsStartsWith"] != null)
     {
         this._CategoryFullIdsStartsWith = node["categoryFullIdsStartsWith"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (CategoryEntryStatus)ParseEnum(typeof(CategoryEntryStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["creatorUserIdEqual"] != null)
     {
         this._CreatorUserIdEqual = node["creatorUserIdEqual"].Value <string>();
     }
     if (node["creatorUserIdIn"] != null)
     {
         this._CreatorUserIdIn = node["creatorUserIdIn"].Value <string>();
     }
 }