Exemple #1
0
 public BusinessProcessServerFilter(JToken node) : base(node)
 {
     if (node["currentDcOrExternal"] != null)
     {
         this._CurrentDcOrExternal = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["currentDcOrExternal"].Value <string>());
     }
     if (node["currentDc"] != null)
     {
         this._CurrentDc = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["currentDc"].Value <string>());
     }
     if (node["orderBy"] != null)
     {
         this._OrderBy = (BusinessProcessServerOrderBy)StringEnum.Parse(typeof(BusinessProcessServerOrderBy), node["orderBy"].Value <string>());
     }
 }
        public BusinessProcessServerFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "currentDcOrExternal":
                    this._CurrentDcOrExternal = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText);
                    continue;

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

                case "orderBy":
                    this._OrderBy = (BusinessProcessServerOrderBy)StringEnum.Parse(typeof(BusinessProcessServerOrderBy), propertyNode.InnerText);
                    continue;
                }
            }
        }