public ESearchParams(JToken node) : base(node)
 {
     if (node["objectStatuses"] != null)
     {
         this._ObjectStatuses = node["objectStatuses"].Value <string>();
     }
     if (node["objectId"] != null)
     {
         this._ObjectId = node["objectId"].Value <string>();
     }
     if (node["orderBy"] != null)
     {
         this._OrderBy = ObjectFactory.Create <ESearchOrderBy>(node["orderBy"]);
     }
 }
Beispiel #2
0
        public ESearchParams(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "objectStatuses":
                    this._ObjectStatuses = propertyNode.InnerText;
                    continue;

                case "objectId":
                    this._ObjectId = propertyNode.InnerText;
                    continue;

                case "orderBy":
                    this._OrderBy = ObjectFactory.Create <ESearchOrderBy>(propertyNode);
                    continue;
                }
            }
        }