public CaptionAssetBaseFilter(JToken node) : base(node) { if (node["captionParamsIdEqual"] != null) { this._CaptionParamsIdEqual = ParseInt(node["captionParamsIdEqual"].Value <string>()); } if (node["captionParamsIdIn"] != null) { this._CaptionParamsIdIn = node["captionParamsIdIn"].Value <string>(); } if (node["formatEqual"] != null) { this._FormatEqual = (CaptionType)StringEnum.Parse(typeof(CaptionType), node["formatEqual"].Value <string>()); } if (node["formatIn"] != null) { this._FormatIn = node["formatIn"].Value <string>(); } if (node["statusEqual"] != null) { this._StatusEqual = (CaptionAssetStatus)ParseEnum(typeof(CaptionAssetStatus), node["statusEqual"].Value <string>()); } if (node["statusIn"] != null) { this._StatusIn = node["statusIn"].Value <string>(); } if (node["statusNotIn"] != null) { this._StatusNotIn = node["statusNotIn"].Value <string>(); } }
public CaptionAsset(JToken node) : base(node) { if (node["captionParamsId"] != null) { this._CaptionParamsId = ParseInt(node["captionParamsId"].Value <string>()); } if (node["language"] != null) { this._Language = (Language)StringEnum.Parse(typeof(Language), node["language"].Value <string>()); } if (node["languageCode"] != null) { this._LanguageCode = (LanguageCode)StringEnum.Parse(typeof(LanguageCode), node["languageCode"].Value <string>()); } if (node["isDefault"] != null) { this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["isDefault"].Value <string>()); } if (node["label"] != null) { this._Label = node["label"].Value <string>(); } if (node["format"] != null) { this._Format = (CaptionType)StringEnum.Parse(typeof(CaptionType), node["format"].Value <string>()); } if (node["source"] != null) { this._Source = (CaptionSource)StringEnum.Parse(typeof(CaptionSource), node["source"].Value <string>()); } if (node["status"] != null) { this._Status = (CaptionAssetStatus)ParseEnum(typeof(CaptionAssetStatus), node["status"].Value <string>()); } if (node["parentId"] != null) { this._ParentId = node["parentId"].Value <string>(); } if (node["accuracy"] != null) { this._Accuracy = ParseInt(node["accuracy"].Value <string>()); } if (node["displayOnPlayer"] != null) { this._DisplayOnPlayer = ParseBool(node["displayOnPlayer"].Value <string>()); } if (node["associatedTranscriptIds"] != null) { this._AssociatedTranscriptIds = node["associatedTranscriptIds"].Value <string>(); } }
public CaptionAsset(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "captionParamsId": this._CaptionParamsId = ParseInt(propertyNode.InnerText); continue; case "language": this._Language = (Language)StringEnum.Parse(typeof(Language), propertyNode.InnerText); continue; case "languageCode": this._LanguageCode = (LanguageCode)StringEnum.Parse(typeof(LanguageCode), propertyNode.InnerText); continue; case "isDefault": this._IsDefault = (NullableBoolean)ParseEnum(typeof(NullableBoolean), propertyNode.InnerText); continue; case "label": this._Label = propertyNode.InnerText; continue; case "format": this._Format = (CaptionType)StringEnum.Parse(typeof(CaptionType), propertyNode.InnerText); continue; case "status": this._Status = (CaptionAssetStatus)ParseEnum(typeof(CaptionAssetStatus), propertyNode.InnerText); continue; case "parentId": this._ParentId = propertyNode.InnerText; continue; case "accuracy": this._Accuracy = ParseInt(propertyNode.InnerText); continue; } } }
public CaptionAssetBaseFilter(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "captionParamsIdEqual": this._CaptionParamsIdEqual = ParseInt(propertyNode.InnerText); continue; case "captionParamsIdIn": this._CaptionParamsIdIn = propertyNode.InnerText; continue; case "formatEqual": this._FormatEqual = (CaptionType)StringEnum.Parse(typeof(CaptionType), propertyNode.InnerText); continue; case "formatIn": this._FormatIn = propertyNode.InnerText; continue; case "statusEqual": this._StatusEqual = (CaptionAssetStatus)ParseEnum(typeof(CaptionAssetStatus), propertyNode.InnerText); continue; case "statusIn": this._StatusIn = propertyNode.InnerText; continue; case "statusNotIn": this._StatusNotIn = propertyNode.InnerText; continue; } } }