public AttachmentAssetBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "formatEqual":
                    this._FormatEqual = (AttachmentType)StringEnum.Parse(typeof(AttachmentType), propertyNode.InnerText);
                    continue;

                case "formatIn":
                    this._FormatIn = propertyNode.InnerText;
                    continue;

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

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

                case "statusNotIn":
                    this._StatusNotIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public AttachmentAsset(JToken node) : base(node)
 {
     if (node["filename"] != null)
     {
         this._Filename = node["filename"].Value <string>();
     }
     if (node["title"] != null)
     {
         this._Title = node["title"].Value <string>();
     }
     if (node["format"] != null)
     {
         this._Format = (AttachmentType)StringEnum.Parse(typeof(AttachmentType), node["format"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (AttachmentAssetStatus)ParseEnum(typeof(AttachmentAssetStatus), node["status"].Value <string>());
     }
 }
 public AttachmentAssetBaseFilter(JToken node) : base(node)
 {
     if (node["formatEqual"] != null)
     {
         this._FormatEqual = (AttachmentType)StringEnum.Parse(typeof(AttachmentType), node["formatEqual"].Value <string>());
     }
     if (node["formatIn"] != null)
     {
         this._FormatIn = node["formatIn"].Value <string>();
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (AttachmentAssetStatus)ParseEnum(typeof(AttachmentAssetStatus), 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 AttachmentAsset(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "filename":
                    this._Filename = propertyNode.InnerText;
                    continue;

                case "title":
                    this._Title = propertyNode.InnerText;
                    continue;

                case "format":
                    this._Format = (AttachmentType)StringEnum.Parse(typeof(AttachmentType), propertyNode.InnerText);
                    continue;

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