public ESearchEntryParams(JToken node) : base(node) { if (node["searchOperator"] != null) { this._SearchOperator = ObjectFactory.Create <ESearchEntryOperator>(node["searchOperator"]); } if (node["aggregations"] != null) { this._Aggregations = ObjectFactory.Create <ESearchAggregation>(node["aggregations"]); } }
public ESearchEntryParams(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "searchOperator": this._SearchOperator = ObjectFactory.Create <ESearchEntryOperator>(propertyNode); continue; } } }
public ReportInputFilter(JToken node) : base(node) { if (node["keywords"] != null) { this._Keywords = node["keywords"].Value <string>(); } if (node["searchInTags"] != null) { this._SearchInTags = ParseBool(node["searchInTags"].Value <string>()); } if (node["searchInAdminTags"] != null) { this._SearchInAdminTags = ParseBool(node["searchInAdminTags"].Value <string>()); } if (node["categories"] != null) { this._Categories = node["categories"].Value <string>(); } if (node["categoriesIdsIn"] != null) { this._CategoriesIdsIn = node["categoriesIdsIn"].Value <string>(); } if (node["customVar1In"] != null) { this._CustomVar1In = node["customVar1In"].Value <string>(); } if (node["customVar2In"] != null) { this._CustomVar2In = node["customVar2In"].Value <string>(); } if (node["customVar3In"] != null) { this._CustomVar3In = node["customVar3In"].Value <string>(); } if (node["deviceIn"] != null) { this._DeviceIn = node["deviceIn"].Value <string>(); } if (node["countryIn"] != null) { this._CountryIn = node["countryIn"].Value <string>(); } if (node["regionIn"] != null) { this._RegionIn = node["regionIn"].Value <string>(); } if (node["citiesIn"] != null) { this._CitiesIn = node["citiesIn"].Value <string>(); } if (node["operatingSystemFamilyIn"] != null) { this._OperatingSystemFamilyIn = node["operatingSystemFamilyIn"].Value <string>(); } if (node["operatingSystemIn"] != null) { this._OperatingSystemIn = node["operatingSystemIn"].Value <string>(); } if (node["browserFamilyIn"] != null) { this._BrowserFamilyIn = node["browserFamilyIn"].Value <string>(); } if (node["browserIn"] != null) { this._BrowserIn = node["browserIn"].Value <string>(); } if (node["timeZoneOffset"] != null) { this._TimeZoneOffset = ParseInt(node["timeZoneOffset"].Value <string>()); } if (node["interval"] != null) { this._Interval = (ReportInterval)StringEnum.Parse(typeof(ReportInterval), node["interval"].Value <string>()); } if (node["mediaTypeIn"] != null) { this._MediaTypeIn = node["mediaTypeIn"].Value <string>(); } if (node["sourceTypeIn"] != null) { this._SourceTypeIn = node["sourceTypeIn"].Value <string>(); } if (node["ownerIdsIn"] != null) { this._OwnerIdsIn = node["ownerIdsIn"].Value <string>(); } if (node["entryOperator"] != null) { this._EntryOperator = ObjectFactory.Create <ESearchEntryOperator>(node["entryOperator"]); } if (node["entryCreatedAtGreaterThanOrEqual"] != null) { this._EntryCreatedAtGreaterThanOrEqual = ParseInt(node["entryCreatedAtGreaterThanOrEqual"].Value <string>()); } if (node["entryCreatedAtLessThanOrEqual"] != null) { this._EntryCreatedAtLessThanOrEqual = ParseInt(node["entryCreatedAtLessThanOrEqual"].Value <string>()); } if (node["entryIdIn"] != null) { this._EntryIdIn = node["entryIdIn"].Value <string>(); } if (node["playbackTypeIn"] != null) { this._PlaybackTypeIn = node["playbackTypeIn"].Value <string>(); } if (node["playbackContextIdsIn"] != null) { this._PlaybackContextIdsIn = node["playbackContextIdsIn"].Value <string>(); } if (node["rootEntryIdIn"] != null) { this._RootEntryIdIn = node["rootEntryIdIn"].Value <string>(); } if (node["errorCodeIn"] != null) { this._ErrorCodeIn = node["errorCodeIn"].Value <string>(); } if (node["playerVersionIn"] != null) { this._PlayerVersionIn = node["playerVersionIn"].Value <string>(); } if (node["ispIn"] != null) { this._IspIn = node["ispIn"].Value <string>(); } if (node["applicationVersionIn"] != null) { this._ApplicationVersionIn = node["applicationVersionIn"].Value <string>(); } if (node["nodeIdsIn"] != null) { this._NodeIdsIn = node["nodeIdsIn"].Value <string>(); } if (node["categoriesAncestorIdIn"] != null) { this._CategoriesAncestorIdIn = node["categoriesAncestorIdIn"].Value <string>(); } if (node["hotspotIdIn"] != null) { this._HotspotIdIn = node["hotspotIdIn"].Value <string>(); } if (node["crmIdIn"] != null) { this._CrmIdIn = node["crmIdIn"].Value <string>(); } if (node["playlistIdIn"] != null) { this._PlaylistIdIn = node["playlistIdIn"].Value <string>(); } if (node["domainIn"] != null) { this._DomainIn = node["domainIn"].Value <string>(); } if (node["canonicalUrlIn"] != null) { this._CanonicalUrlIn = node["canonicalUrlIn"].Value <string>(); } }