public SearchComparableCondition(JToken node) : base(node) { if (node["comparison"] != null) { this._Comparison = (SearchConditionComparison)StringEnum.Parse(typeof(SearchConditionComparison), node["comparison"].Value <string>()); } }
public CompareCondition(JToken node) : base(node) { if (node["value"] != null) { this._Value = ObjectFactory.Create <IntegerValue>(node["value"]); } if (node["comparison"] != null) { this._Comparison = (SearchConditionComparison)StringEnum.Parse(typeof(SearchConditionComparison), node["comparison"].Value <string>()); } }
public SearchComparableAttributeCondition(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "comparison": this._Comparison = (SearchConditionComparison)StringEnum.Parse(typeof(SearchConditionComparison), propertyNode.InnerText); continue; } } }
public CompareCondition(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "value": this._Value = ObjectFactory.Create <IntegerValue>(propertyNode); continue; case "comparison": this._Comparison = (SearchConditionComparison)StringEnum.Parse(typeof(SearchConditionComparison), 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>()); } }