public ESearchCategoryUserItem(JToken node) : base(node)
 {
     if (node["fieldName"] != null)
     {
         this._FieldName = (ESearchCategoryUserFieldName)StringEnum.Parse(typeof(ESearchCategoryUserFieldName), node["fieldName"].Value <string>());
     }
     if (node["permissionLevel"] != null)
     {
         this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["permissionLevel"].Value <string>());
     }
     if (node["permissionName"] != null)
     {
         this._PermissionName = node["permissionName"].Value <string>();
     }
 }
        public CategoryUser(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "categoryId":
                    this._CategoryId = ParseInt(propertyNode.InnerText);
                    continue;

                case "userId":
                    this._UserId = propertyNode.InnerText;
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "permissionLevel":
                    this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), propertyNode.InnerText);
                    continue;

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

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

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updateMethod":
                    this._UpdateMethod = (UpdateMethodType)ParseEnum(typeof(UpdateMethodType), propertyNode.InnerText);
                    continue;

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

                case "permissionNames":
                    this._PermissionNames = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public CategoryEntryCondition(JToken node) : base(node)
 {
     if (node["categoryId"] != null)
     {
         this._CategoryId = ParseInt(node["categoryId"].Value <string>());
     }
     if (node["categoryIds"] != null)
     {
         this._CategoryIds = node["categoryIds"].Value <string>();
     }
     if (node["categoryUserPermission"] != null)
     {
         this._CategoryUserPermission = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["categoryUserPermission"].Value <string>());
     }
     if (node["comparison"] != null)
     {
         this._Comparison = (SearchConditionComparison)StringEnum.Parse(typeof(SearchConditionComparison), node["comparison"].Value <string>());
     }
 }
Пример #4
0
 public CategoryUser(JToken node) : base(node)
 {
     if (node["categoryId"] != null)
     {
         this._CategoryId = ParseInt(node["categoryId"].Value <string>());
     }
     if (node["userId"] != null)
     {
         this._UserId = node["userId"].Value <string>();
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["permissionLevel"] != null)
     {
         this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["permissionLevel"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (CategoryUserStatus)ParseEnum(typeof(CategoryUserStatus), node["status"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["updateMethod"] != null)
     {
         this._UpdateMethod = (UpdateMethodType)ParseEnum(typeof(UpdateMethodType), node["updateMethod"].Value <string>());
     }
     if (node["categoryFullIds"] != null)
     {
         this._CategoryFullIds = node["categoryFullIds"].Value <string>();
     }
     if (node["permissionNames"] != null)
     {
         this._PermissionNames = node["permissionNames"].Value <string>();
     }
 }
        public ESearchCategoryUserItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "fieldName":
                    this._FieldName = (ESearchCategoryUserFieldName)StringEnum.Parse(typeof(ESearchCategoryUserFieldName), propertyNode.InnerText);
                    continue;

                case "permissionLevel":
                    this._PermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), propertyNode.InnerText);
                    continue;

                case "permissionName":
                    this._PermissionName = propertyNode.InnerText;
                    continue;
                }
            }
        }
Пример #6
0
 public CategoryUserBaseFilter(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["userIdEqual"] != null)
     {
         this._UserIdEqual = node["userIdEqual"].Value <string>();
     }
     if (node["userIdIn"] != null)
     {
         this._UserIdIn = node["userIdIn"].Value <string>();
     }
     if (node["permissionLevelEqual"] != null)
     {
         this._PermissionLevelEqual = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["permissionLevelEqual"].Value <string>());
     }
     if (node["permissionLevelIn"] != null)
     {
         this._PermissionLevelIn = node["permissionLevelIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (CategoryUserStatus)ParseEnum(typeof(CategoryUserStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].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["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["updateMethodEqual"] != null)
     {
         this._UpdateMethodEqual = (UpdateMethodType)ParseEnum(typeof(UpdateMethodType), node["updateMethodEqual"].Value <string>());
     }
     if (node["updateMethodIn"] != null)
     {
         this._UpdateMethodIn = node["updateMethodIn"].Value <string>();
     }
     if (node["categoryFullIdsStartsWith"] != null)
     {
         this._CategoryFullIdsStartsWith = node["categoryFullIdsStartsWith"].Value <string>();
     }
     if (node["categoryFullIdsEqual"] != null)
     {
         this._CategoryFullIdsEqual = node["categoryFullIdsEqual"].Value <string>();
     }
     if (node["permissionNamesMatchAnd"] != null)
     {
         this._PermissionNamesMatchAnd = node["permissionNamesMatchAnd"].Value <string>();
     }
     if (node["permissionNamesMatchOr"] != null)
     {
         this._PermissionNamesMatchOr = node["permissionNamesMatchOr"].Value <string>();
     }
     if (node["permissionNamesNotContains"] != null)
     {
         this._PermissionNamesNotContains = node["permissionNamesNotContains"].Value <string>();
     }
 }
 public Category(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["parentId"] != null)
     {
         this._ParentId = ParseInt(node["parentId"].Value <string>());
     }
     if (node["depth"] != null)
     {
         this._Depth = ParseInt(node["depth"].Value <string>());
     }
     if (node["partnerId"] != null)
     {
         this._PartnerId = ParseInt(node["partnerId"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["fullName"] != null)
     {
         this._FullName = node["fullName"].Value <string>();
     }
     if (node["fullIds"] != null)
     {
         this._FullIds = node["fullIds"].Value <string>();
     }
     if (node["entriesCount"] != null)
     {
         this._EntriesCount = ParseInt(node["entriesCount"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["appearInList"] != null)
     {
         this._AppearInList = (AppearInListType)ParseEnum(typeof(AppearInListType), node["appearInList"].Value <string>());
     }
     if (node["privacy"] != null)
     {
         this._Privacy = (PrivacyType)ParseEnum(typeof(PrivacyType), node["privacy"].Value <string>());
     }
     if (node["inheritanceType"] != null)
     {
         this._InheritanceType = (InheritanceType)ParseEnum(typeof(InheritanceType), node["inheritanceType"].Value <string>());
     }
     if (node["userJoinPolicy"] != null)
     {
         this._UserJoinPolicy = (UserJoinPolicyType)ParseEnum(typeof(UserJoinPolicyType), node["userJoinPolicy"].Value <string>());
     }
     if (node["defaultPermissionLevel"] != null)
     {
         this._DefaultPermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), node["defaultPermissionLevel"].Value <string>());
     }
     if (node["owner"] != null)
     {
         this._Owner = node["owner"].Value <string>();
     }
     if (node["directEntriesCount"] != null)
     {
         this._DirectEntriesCount = ParseInt(node["directEntriesCount"].Value <string>());
     }
     if (node["referenceId"] != null)
     {
         this._ReferenceId = node["referenceId"].Value <string>();
     }
     if (node["contributionPolicy"] != null)
     {
         this._ContributionPolicy = (ContributionPolicyType)ParseEnum(typeof(ContributionPolicyType), node["contributionPolicy"].Value <string>());
     }
     if (node["membersCount"] != null)
     {
         this._MembersCount = ParseInt(node["membersCount"].Value <string>());
     }
     if (node["pendingMembersCount"] != null)
     {
         this._PendingMembersCount = ParseInt(node["pendingMembersCount"].Value <string>());
     }
     if (node["privacyContext"] != null)
     {
         this._PrivacyContext = node["privacyContext"].Value <string>();
     }
     if (node["privacyContexts"] != null)
     {
         this._PrivacyContexts = node["privacyContexts"].Value <string>();
     }
     if (node["status"] != null)
     {
         this._Status = (CategoryStatus)ParseEnum(typeof(CategoryStatus), node["status"].Value <string>());
     }
     if (node["inheritedParentId"] != null)
     {
         this._InheritedParentId = ParseInt(node["inheritedParentId"].Value <string>());
     }
     if (node["partnerSortValue"] != null)
     {
         this._PartnerSortValue = ParseInt(node["partnerSortValue"].Value <string>());
     }
     if (node["partnerData"] != null)
     {
         this._PartnerData = node["partnerData"].Value <string>();
     }
     if (node["defaultOrderBy"] != null)
     {
         this._DefaultOrderBy = (CategoryOrderBy)StringEnum.Parse(typeof(CategoryOrderBy), node["defaultOrderBy"].Value <string>());
     }
     if (node["directSubCategoriesCount"] != null)
     {
         this._DirectSubCategoriesCount = ParseInt(node["directSubCategoriesCount"].Value <string>());
     }
     if (node["moderation"] != null)
     {
         this._Moderation = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["moderation"].Value <string>());
     }
     if (node["pendingEntriesCount"] != null)
     {
         this._PendingEntriesCount = ParseInt(node["pendingEntriesCount"].Value <string>());
     }
     if (node["isAggregationCategory"] != null)
     {
         this._IsAggregationCategory = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isAggregationCategory"].Value <string>());
     }
     if (node["aggregationCategories"] != null)
     {
         this._AggregationCategories = node["aggregationCategories"].Value <string>();
     }
     if (node["adminTags"] != null)
     {
         this._AdminTags = node["adminTags"].Value <string>();
     }
 }
        public CategoryUserBaseFilter(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 "userIdEqual":
                    this._UserIdEqual = propertyNode.InnerText;
                    continue;

                case "userIdIn":
                    this._UserIdIn = propertyNode.InnerText;
                    continue;

                case "permissionLevelEqual":
                    this._PermissionLevelEqual = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), propertyNode.InnerText);
                    continue;

                case "permissionLevelIn":
                    this._PermissionLevelIn = propertyNode.InnerText;
                    continue;

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

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

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

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

                case "updatedAtGreaterThanOrEqual":
                    this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtLessThanOrEqual":
                    this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updateMethodEqual":
                    this._UpdateMethodEqual = (UpdateMethodType)ParseEnum(typeof(UpdateMethodType), propertyNode.InnerText);
                    continue;

                case "updateMethodIn":
                    this._UpdateMethodIn = propertyNode.InnerText;
                    continue;

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

                case "categoryFullIdsEqual":
                    this._CategoryFullIdsEqual = propertyNode.InnerText;
                    continue;

                case "permissionNamesMatchAnd":
                    this._PermissionNamesMatchAnd = propertyNode.InnerText;
                    continue;

                case "permissionNamesMatchOr":
                    this._PermissionNamesMatchOr = propertyNode.InnerText;
                    continue;

                case "permissionNamesNotContains":
                    this._PermissionNamesNotContains = propertyNode.InnerText;
                    continue;
                }
            }
        }
Пример #9
0
        public Category(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "parentId":
                    this._ParentId = ParseInt(propertyNode.InnerText);
                    continue;

                case "depth":
                    this._Depth = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerId":
                    this._PartnerId = ParseInt(propertyNode.InnerText);
                    continue;

                case "name":
                    this._Name = propertyNode.InnerText;
                    continue;

                case "fullName":
                    this._FullName = propertyNode.InnerText;
                    continue;

                case "fullIds":
                    this._FullIds = propertyNode.InnerText;
                    continue;

                case "entriesCount":
                    this._EntriesCount = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "description":
                    this._Description = propertyNode.InnerText;
                    continue;

                case "tags":
                    this._Tags = propertyNode.InnerText;
                    continue;

                case "appearInList":
                    this._AppearInList = (AppearInListType)ParseEnum(typeof(AppearInListType), propertyNode.InnerText);
                    continue;

                case "privacy":
                    this._Privacy = (PrivacyType)ParseEnum(typeof(PrivacyType), propertyNode.InnerText);
                    continue;

                case "inheritanceType":
                    this._InheritanceType = (InheritanceType)ParseEnum(typeof(InheritanceType), propertyNode.InnerText);
                    continue;

                case "userJoinPolicy":
                    this._UserJoinPolicy = (UserJoinPolicyType)ParseEnum(typeof(UserJoinPolicyType), propertyNode.InnerText);
                    continue;

                case "defaultPermissionLevel":
                    this._DefaultPermissionLevel = (CategoryUserPermissionLevel)ParseEnum(typeof(CategoryUserPermissionLevel), propertyNode.InnerText);
                    continue;

                case "owner":
                    this._Owner = propertyNode.InnerText;
                    continue;

                case "directEntriesCount":
                    this._DirectEntriesCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "referenceId":
                    this._ReferenceId = propertyNode.InnerText;
                    continue;

                case "contributionPolicy":
                    this._ContributionPolicy = (ContributionPolicyType)ParseEnum(typeof(ContributionPolicyType), propertyNode.InnerText);
                    continue;

                case "membersCount":
                    this._MembersCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "pendingMembersCount":
                    this._PendingMembersCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "privacyContext":
                    this._PrivacyContext = propertyNode.InnerText;
                    continue;

                case "privacyContexts":
                    this._PrivacyContexts = propertyNode.InnerText;
                    continue;

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

                case "inheritedParentId":
                    this._InheritedParentId = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerSortValue":
                    this._PartnerSortValue = ParseInt(propertyNode.InnerText);
                    continue;

                case "partnerData":
                    this._PartnerData = propertyNode.InnerText;
                    continue;

                case "defaultOrderBy":
                    this._DefaultOrderBy = (CategoryOrderBy)StringEnum.Parse(typeof(CategoryOrderBy), propertyNode.InnerText);
                    continue;

                case "directSubCategoriesCount":
                    this._DirectSubCategoriesCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "moderation":
                    this._Moderation = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "pendingEntriesCount":
                    this._PendingEntriesCount = ParseInt(propertyNode.InnerText);
                    continue;

                case "isAggregationCategory":
                    this._IsAggregationCategory = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

                case "aggregationCategories":
                    this._AggregationCategories = propertyNode.InnerText;
                    continue;
                }
            }
        }