public VendorCatalogItem(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].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["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 = (VendorCatalogItemStatus)ParseEnum(typeof(VendorCatalogItemStatus), node["status"].Value <string>());
     }
     if (node["serviceType"] != null)
     {
         this._ServiceType = (VendorServiceType)ParseEnum(typeof(VendorServiceType), node["serviceType"].Value <string>());
     }
     if (node["serviceFeature"] != null)
     {
         this._ServiceFeature = (VendorServiceFeature)ParseEnum(typeof(VendorServiceFeature), node["serviceFeature"].Value <string>());
     }
     if (node["turnAroundTime"] != null)
     {
         this._TurnAroundTime = (VendorServiceTurnAroundTime)ParseEnum(typeof(VendorServiceTurnAroundTime), node["turnAroundTime"].Value <string>());
     }
     if (node["pricing"] != null)
     {
         this._Pricing = ObjectFactory.Create <VendorCatalogItemPricing>(node["pricing"]);
     }
     if (node["allowResubmission"] != null)
     {
         this._AllowResubmission = ParseBool(node["allowResubmission"].Value <string>());
     }
 }
Ejemplo n.º 2
0
 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>());
     }
 }