public ConversionProfileAssetParams(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "conversionProfileId":
                    this._ConversionProfileId = ParseInt(propertyNode.InnerText);
                    continue;

                case "assetParamsId":
                    this._AssetParamsId = ParseInt(propertyNode.InnerText);
                    continue;

                case "readyBehavior":
                    this._ReadyBehavior = (FlavorReadyBehaviorType)ParseEnum(typeof(FlavorReadyBehaviorType), propertyNode.InnerText);
                    continue;

                case "origin":
                    this._Origin = (AssetParamsOrigin)ParseEnum(typeof(AssetParamsOrigin), propertyNode.InnerText);
                    continue;

                case "systemName":
                    this._SystemName = propertyNode.InnerText;
                    continue;

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

                case "deletePolicy":
                    this._DeletePolicy = (AssetParamsDeletePolicy)ParseEnum(typeof(AssetParamsDeletePolicy), propertyNode.InnerText);
                    continue;

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

                case "contentAwareness":
                    this._ContentAwareness = ParseFloat(propertyNode.InnerText);
                    continue;

                case "chunkedEncodeMode":
                    this._ChunkedEncodeMode = ParseInt(propertyNode.InnerText);
                    continue;

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

                case "tags":
                    this._Tags = propertyNode.InnerText;
                    continue;
                }
            }
        }
Ejemplo n.º 2
0
 public ConversionProfileAssetParams(JToken node) : base(node)
 {
     if (node["conversionProfileId"] != null)
     {
         this._ConversionProfileId = ParseInt(node["conversionProfileId"].Value <string>());
     }
     if (node["assetParamsId"] != null)
     {
         this._AssetParamsId = ParseInt(node["assetParamsId"].Value <string>());
     }
     if (node["readyBehavior"] != null)
     {
         this._ReadyBehavior = (FlavorReadyBehaviorType)ParseEnum(typeof(FlavorReadyBehaviorType), node["readyBehavior"].Value <string>());
     }
     if (node["origin"] != null)
     {
         this._Origin = (AssetParamsOrigin)ParseEnum(typeof(AssetParamsOrigin), node["origin"].Value <string>());
     }
     if (node["systemName"] != null)
     {
         this._SystemName = node["systemName"].Value <string>();
     }
     if (node["forceNoneComplied"] != null)
     {
         this._ForceNoneComplied = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["forceNoneComplied"].Value <string>());
     }
     if (node["deletePolicy"] != null)
     {
         this._DeletePolicy = (AssetParamsDeletePolicy)ParseEnum(typeof(AssetParamsDeletePolicy), node["deletePolicy"].Value <string>());
     }
     if (node["isEncrypted"] != null)
     {
         this._IsEncrypted = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isEncrypted"].Value <string>());
     }
     if (node["contentAwareness"] != null)
     {
         this._ContentAwareness = ParseFloat(node["contentAwareness"].Value <string>());
     }
     if (node["chunkedEncodeMode"] != null)
     {
         this._ChunkedEncodeMode = ParseInt(node["chunkedEncodeMode"].Value <string>());
     }
     if (node["twoPass"] != null)
     {
         this._TwoPass = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["twoPass"].Value <string>());
     }
     if (node["tags"] != null)
     {
         this._Tags = node["tags"].Value <string>();
     }
     if (node["overloadParams"] != null)
     {
         this._OverloadParams = node["overloadParams"].Value <string>();
     }
 }
Ejemplo n.º 3
0
        public ConversionProfileAssetParamsBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "conversionProfileIdEqual":
                    this._ConversionProfileIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "conversionProfileIdIn":
                    this._ConversionProfileIdIn = propertyNode.InnerText;
                    continue;

                case "assetParamsIdEqual":
                    this._AssetParamsIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "assetParamsIdIn":
                    this._AssetParamsIdIn = propertyNode.InnerText;
                    continue;

                case "readyBehaviorEqual":
                    this._ReadyBehaviorEqual = (FlavorReadyBehaviorType)ParseEnum(typeof(FlavorReadyBehaviorType), propertyNode.InnerText);
                    continue;

                case "readyBehaviorIn":
                    this._ReadyBehaviorIn = propertyNode.InnerText;
                    continue;

                case "originEqual":
                    this._OriginEqual = (AssetParamsOrigin)ParseEnum(typeof(AssetParamsOrigin), propertyNode.InnerText);
                    continue;

                case "originIn":
                    this._OriginIn = propertyNode.InnerText;
                    continue;

                case "systemNameEqual":
                    this._SystemNameEqual = propertyNode.InnerText;
                    continue;

                case "systemNameIn":
                    this._SystemNameIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
 public ConversionProfileAssetParamsBaseFilter(JToken node) : base(node)
 {
     if (node["conversionProfileIdEqual"] != null)
     {
         this._ConversionProfileIdEqual = ParseInt(node["conversionProfileIdEqual"].Value <string>());
     }
     if (node["conversionProfileIdIn"] != null)
     {
         this._ConversionProfileIdIn = node["conversionProfileIdIn"].Value <string>();
     }
     if (node["assetParamsIdEqual"] != null)
     {
         this._AssetParamsIdEqual = ParseInt(node["assetParamsIdEqual"].Value <string>());
     }
     if (node["assetParamsIdIn"] != null)
     {
         this._AssetParamsIdIn = node["assetParamsIdIn"].Value <string>();
     }
     if (node["readyBehaviorEqual"] != null)
     {
         this._ReadyBehaviorEqual = (FlavorReadyBehaviorType)ParseEnum(typeof(FlavorReadyBehaviorType), node["readyBehaviorEqual"].Value <string>());
     }
     if (node["readyBehaviorIn"] != null)
     {
         this._ReadyBehaviorIn = node["readyBehaviorIn"].Value <string>();
     }
     if (node["originEqual"] != null)
     {
         this._OriginEqual = (AssetParamsOrigin)ParseEnum(typeof(AssetParamsOrigin), node["originEqual"].Value <string>());
     }
     if (node["originIn"] != null)
     {
         this._OriginIn = node["originIn"].Value <string>();
     }
     if (node["systemNameEqual"] != null)
     {
         this._SystemNameEqual = node["systemNameEqual"].Value <string>();
     }
     if (node["systemNameIn"] != null)
     {
         this._SystemNameIn = node["systemNameIn"].Value <string>();
     }
 }