public ThumbAssetBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "thumbParamsIdEqual":
                    this._ThumbParamsIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "thumbParamsIdIn":
                    this._ThumbParamsIdIn = propertyNode.InnerText;
                    continue;

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

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

                case "statusNotIn":
                    this._StatusNotIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public ThumbAsset(JToken node) : base(node)
 {
     if (node["thumbParamsId"] != null)
     {
         this._ThumbParamsId = ParseInt(node["thumbParamsId"].Value <string>());
     }
     if (node["width"] != null)
     {
         this._Width = ParseInt(node["width"].Value <string>());
     }
     if (node["height"] != null)
     {
         this._Height = ParseInt(node["height"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (ThumbAssetStatus)ParseEnum(typeof(ThumbAssetStatus), node["status"].Value <string>());
     }
 }
Beispiel #3
0
 public ThumbAssetBaseFilter(JToken node) : base(node)
 {
     if (node["thumbParamsIdEqual"] != null)
     {
         this._ThumbParamsIdEqual = ParseInt(node["thumbParamsIdEqual"].Value <string>());
     }
     if (node["thumbParamsIdIn"] != null)
     {
         this._ThumbParamsIdIn = node["thumbParamsIdIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (ThumbAssetStatus)ParseEnum(typeof(ThumbAssetStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["statusNotIn"] != null)
     {
         this._StatusNotIn = node["statusNotIn"].Value <string>();
     }
 }
Beispiel #4
0
        public ThumbAsset(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "thumbParamsId":
                    this._ThumbParamsId = ParseInt(propertyNode.InnerText);
                    continue;

                case "width":
                    this._Width = ParseInt(propertyNode.InnerText);
                    continue;

                case "height":
                    this._Height = ParseInt(propertyNode.InnerText);
                    continue;

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