public FlavorAssetBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "flavorParamsIdEqual": this._FlavorParamsIdEqual = ParseInt(propertyNode.InnerText); continue; case "flavorParamsIdIn": this._FlavorParamsIdIn = propertyNode.InnerText; continue; case "statusEqual": this._StatusEqual = (FlavorAssetStatus)ParseEnum(typeof(FlavorAssetStatus), propertyNode.InnerText); continue; case "statusIn": this._StatusIn = propertyNode.InnerText; continue; case "statusNotIn": this._StatusNotIn = propertyNode.InnerText; continue; } } }
public FlavorAsset(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "flavorParamsId": this._FlavorParamsId = ParseInt(propertyNode.InnerText); continue; case "width": this._Width = ParseInt(propertyNode.InnerText); continue; case "height": this._Height = ParseInt(propertyNode.InnerText); continue; case "bitrate": this._Bitrate = ParseInt(propertyNode.InnerText); continue; case "frameRate": this._FrameRate = ParseFloat(propertyNode.InnerText); continue; case "isOriginal": this._IsOriginal = ParseBool(propertyNode.InnerText); continue; case "isWeb": this._IsWeb = ParseBool(propertyNode.InnerText); continue; case "containerFormat": this._ContainerFormat = propertyNode.InnerText; continue; case "videoCodecId": this._VideoCodecId = propertyNode.InnerText; continue; case "status": this._Status = (FlavorAssetStatus)ParseEnum(typeof(FlavorAssetStatus), propertyNode.InnerText); continue; case "language": this._Language = (Language)StringEnum.Parse(typeof(Language), propertyNode.InnerText); continue; case "label": this._Label = propertyNode.InnerText; continue; case "isDefault": this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; } } }
public FlavorAsset(JToken node) : base(node) { if (node["flavorParamsId"] != null) { this._FlavorParamsId = ParseInt(node["flavorParamsId"].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["bitrate"] != null) { this._Bitrate = ParseInt(node["bitrate"].Value <string>()); } if (node["frameRate"] != null) { this._FrameRate = ParseFloat(node["frameRate"].Value <string>()); } if (node["isOriginal"] != null) { this._IsOriginal = ParseBool(node["isOriginal"].Value <string>()); } if (node["isWeb"] != null) { this._IsWeb = ParseBool(node["isWeb"].Value <string>()); } if (node["containerFormat"] != null) { this._ContainerFormat = node["containerFormat"].Value <string>(); } if (node["videoCodecId"] != null) { this._VideoCodecId = node["videoCodecId"].Value <string>(); } if (node["status"] != null) { this._Status = (FlavorAssetStatus)ParseEnum(typeof(FlavorAssetStatus), node["status"].Value <string>()); } if (node["language"] != null) { this._Language = (Language)StringEnum.Parse(typeof(Language), node["language"].Value <string>()); } if (node["label"] != null) { this._Label = node["label"].Value <string>(); } if (node["isDefault"] != null) { this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isDefault"].Value <string>()); } }
public FlavorAssetBaseFilter(JToken node) : base(node) { if (node["flavorParamsIdEqual"] != null) { this._FlavorParamsIdEqual = ParseInt(node["flavorParamsIdEqual"].Value <string>()); } if (node["flavorParamsIdIn"] != null) { this._FlavorParamsIdIn = node["flavorParamsIdIn"].Value <string>(); } if (node["statusEqual"] != null) { this._StatusEqual = (FlavorAssetStatus)ParseEnum(typeof(FlavorAssetStatus), node["statusEqual"].Value <string>()); } if (node["statusIn"] != null) { this._StatusIn = node["statusIn"].Value <string>(); } if (node["statusNotIn"] != null) { this._StatusNotIn = node["statusNotIn"].Value <string>(); } }