Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BudgetSettingsResponseData" /> class.
 /// </summary>
 /// <param name="settings">settings (required).</param>
 public BudgetSettingsResponseData(BudgetSettings settings = default(BudgetSettings))
 {
     // to ensure "settings" is required (not null)
     if (settings == null)
     {
         throw new InvalidDataException("settings is a required property for BudgetSettingsResponseData and cannot be null");
     }
     else
     {
         this.Settings = settings;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BudgetSettingsResponseData" /> class.
 /// </summary>
 /// <param name="settings">settings (required).</param>
 public BudgetSettingsResponseData(BudgetSettings settings = default(BudgetSettings))
 {
     // to ensure "settings" is required (not null)
     this.Settings = settings ?? throw new ArgumentNullException("settings is a required property for BudgetSettingsResponseData and cannot be null");
 }