public VendorAlignmentCatalogItem(JToken node) : base(node) { if (node["sourceLanguage"] != null) { this._SourceLanguage = (CatalogItemLanguage)StringEnum.Parse(typeof(CatalogItemLanguage), node["sourceLanguage"].Value <string>()); } if (node["outputFormat"] != null) { this._OutputFormat = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["outputFormat"].Value <string>()); } }
public VendorCaptionsCatalogItem(JToken node) : base(node) { if (node["sourceLanguage"] != null) { this._SourceLanguage = (CatalogItemLanguage)StringEnum.Parse(typeof(CatalogItemLanguage), node["sourceLanguage"].Value <string>()); } if (node["outputFormat"] != null) { this._OutputFormat = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["outputFormat"].Value <string>()); } if (node["enableSpeakerId"] != null) { this._EnableSpeakerId = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableSpeakerId"].Value <string>()); } if (node["fixedPriceAddons"] != null) { this._FixedPriceAddons = ParseInt(node["fixedPriceAddons"].Value <string>()); } }
public VendorCaptionsCatalogItemBaseFilter(JToken node) : base(node) { if (node["sourceLanguageEqual"] != null) { this._SourceLanguageEqual = (CatalogItemLanguage)StringEnum.Parse(typeof(CatalogItemLanguage), node["sourceLanguageEqual"].Value <string>()); } if (node["sourceLanguageIn"] != null) { this._SourceLanguageIn = node["sourceLanguageIn"].Value <string>(); } if (node["outputFormatEqual"] != null) { this._OutputFormatEqual = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["outputFormatEqual"].Value <string>()); } if (node["outputFormatIn"] != null) { this._OutputFormatIn = node["outputFormatIn"].Value <string>(); } }
public ReachProfile(JToken node) : base(node) { if (node["id"] != null) { this._Id = ParseInt(node["id"].Value <string>()); } if (node["name"] != null) { this._Name = node["name"].Value <string>(); } if (node["partnerId"] != null) { this._PartnerId = ParseInt(node["partnerId"].Value <string>()); } if (node["createdAt"] != null) { this._CreatedAt = ParseInt(node["createdAt"].Value <string>()); } if (node["updatedAt"] != null) { this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>()); } if (node["status"] != null) { this._Status = (ReachProfileStatus)ParseEnum(typeof(ReachProfileStatus), node["status"].Value <string>()); } if (node["profileType"] != null) { this._ProfileType = (ReachProfileType)ParseEnum(typeof(ReachProfileType), node["profileType"].Value <string>()); } if (node["defaultOutputFormat"] != null) { this._DefaultOutputFormat = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["defaultOutputFormat"].Value <string>()); } if (node["enableMachineModeration"] != null) { this._EnableMachineModeration = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableMachineModeration"].Value <string>()); } if (node["enableHumanModeration"] != null) { this._EnableHumanModeration = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableHumanModeration"].Value <string>()); } if (node["autoDisplayMachineCaptionsOnPlayer"] != null) { this._AutoDisplayMachineCaptionsOnPlayer = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["autoDisplayMachineCaptionsOnPlayer"].Value <string>()); } if (node["autoDisplayHumanCaptionsOnPlayer"] != null) { this._AutoDisplayHumanCaptionsOnPlayer = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["autoDisplayHumanCaptionsOnPlayer"].Value <string>()); } if (node["enableMetadataExtraction"] != null) { this._EnableMetadataExtraction = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableMetadataExtraction"].Value <string>()); } if (node["enableSpeakerChangeIndication"] != null) { this._EnableSpeakerChangeIndication = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableSpeakerChangeIndication"].Value <string>()); } if (node["enableAudioTags"] != null) { this._EnableAudioTags = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableAudioTags"].Value <string>()); } if (node["enableProfanityRemoval"] != null) { this._EnableProfanityRemoval = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableProfanityRemoval"].Value <string>()); } if (node["maxCharactersPerCaptionLine"] != null) { this._MaxCharactersPerCaptionLine = ParseInt(node["maxCharactersPerCaptionLine"].Value <string>()); } if (node["labelAdditionForMachineServiceType"] != null) { this._LabelAdditionForMachineServiceType = node["labelAdditionForMachineServiceType"].Value <string>(); } if (node["labelAdditionForHumanServiceType"] != null) { this._LabelAdditionForHumanServiceType = node["labelAdditionForHumanServiceType"].Value <string>(); } if (node["contentDeletionPolicy"] != null) { this._ContentDeletionPolicy = (ReachProfileContentDeletionPolicy)ParseEnum(typeof(ReachProfileContentDeletionPolicy), node["contentDeletionPolicy"].Value <string>()); } if (node["rules"] != null) { this._Rules = new List <Rule>(); foreach (var arrayNode in node["rules"].Children()) { this._Rules.Add(ObjectFactory.Create <Rule>(arrayNode)); } } if (node["credit"] != null) { this._Credit = ObjectFactory.Create <BaseVendorCredit>(node["credit"]); } if (node["usedCredit"] != null) { this._UsedCredit = ParseFloat(node["usedCredit"].Value <string>()); } if (node["dictionaries"] != null) { this._Dictionaries = new List <Dictionary>(); foreach (var arrayNode in node["dictionaries"].Children()) { this._Dictionaries.Add(ObjectFactory.Create <Dictionary>(arrayNode)); } } if (node["flavorParamsIds"] != null) { this._FlavorParamsIds = node["flavorParamsIds"].Value <string>(); } if (node["vendorTaskProcessingRegion"] != null) { this._VendorTaskProcessingRegion = (VendorTaskProcessingRegion)ParseEnum(typeof(VendorTaskProcessingRegion), node["vendorTaskProcessingRegion"].Value <string>()); } }
public BulkUploadResultVendorCatalogItem(JToken node) : base(node) { if (node["vendorCatalogItemId"] != null) { this._VendorCatalogItemId = ParseInt(node["vendorCatalogItemId"].Value <string>()); } if (node["vendorPartnerId"] != null) { this._VendorPartnerId = ParseInt(node["vendorPartnerId"].Value <string>()); } if (node["name"] != null) { this._Name = node["name"].Value <string>(); } if (node["systemName"] != null) { this._SystemName = node["systemName"].Value <string>(); } if (node["serviceFeature"] != null) { this._ServiceFeature = (VendorServiceFeature)ParseEnum(typeof(VendorServiceFeature), node["serviceFeature"].Value <string>()); } if (node["serviceType"] != null) { this._ServiceType = (VendorServiceType)ParseEnum(typeof(VendorServiceType), node["serviceType"].Value <string>()); } if (node["turnAroundTime"] != null) { this._TurnAroundTime = (VendorServiceTurnAroundTime)ParseEnum(typeof(VendorServiceTurnAroundTime), node["turnAroundTime"].Value <string>()); } if (node["sourceLanguage"] != null) { this._SourceLanguage = (CatalogItemLanguage)StringEnum.Parse(typeof(CatalogItemLanguage), node["sourceLanguage"].Value <string>()); } if (node["targetLanguage"] != null) { this._TargetLanguage = (CatalogItemLanguage)StringEnum.Parse(typeof(CatalogItemLanguage), node["targetLanguage"].Value <string>()); } if (node["outputFormat"] != null) { this._OutputFormat = (VendorCatalogItemOutputFormat)ParseEnum(typeof(VendorCatalogItemOutputFormat), node["outputFormat"].Value <string>()); } if (node["enableSpeakerId"] != null) { this._EnableSpeakerId = (NullableBoolean)ParseEnum(typeof(NullableBoolean), node["enableSpeakerId"].Value <string>()); } if (node["fixedPriceAddons"] != null) { this._FixedPriceAddons = ParseInt(node["fixedPriceAddons"].Value <string>()); } if (node["pricing"] != null) { this._Pricing = ObjectFactory.Create <VendorCatalogItemPricing>(node["pricing"]); } if (node["flavorParamsId"] != null) { this._FlavorParamsId = ParseInt(node["flavorParamsId"].Value <string>()); } if (node["clearAudioFlavorParamsId"] != null) { this._ClearAudioFlavorParamsId = ParseInt(node["clearAudioFlavorParamsId"].Value <string>()); } }