Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaveStoreAlertRequest" /> class.
 /// </summary>
 /// <param name="Active">Active (required).</param>
 /// <param name="Properties">Properties to configure the alert.</param>
 public SaveStoreAlertRequest(AlertIsActive Active = default(AlertIsActive), List <StoreAlertProperty> Properties = default(List <StoreAlertProperty>))
 {
     // to ensure "Active" is required (not null)
     if (Active == null)
     {
         throw new InvalidDataException("Active is a required property for SaveStoreAlertRequest and cannot be null");
     }
     else
     {
         this.Active = Active;
     }
     this.Properties = Properties;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StoreAlert" /> class.
 /// </summary>
 /// <param name="Links">Links.</param>
 /// <param name="AlertId">AlertId (required).</param>
 /// <param name="AlertName">AlertName (required).</param>
 /// <param name="Active">Active (required).</param>
 /// <param name="Properties">The current configuration properties of the alert.</param>
 public StoreAlert(StoreAlertLinks Links = default(StoreAlertLinks), AlertId AlertId = default(AlertId), AlertName AlertName = default(AlertName), AlertIsActive Active = default(AlertIsActive), List <StoreAlertPropertyInfo> Properties = default(List <StoreAlertPropertyInfo>))
 {
     // to ensure "AlertId" is required (not null)
     if (AlertId == null)
     {
         throw new InvalidDataException("AlertId is a required property for StoreAlert and cannot be null");
     }
     else
     {
         this.AlertId = AlertId;
     }
     // to ensure "AlertName" is required (not null)
     if (AlertName == null)
     {
         throw new InvalidDataException("AlertName is a required property for StoreAlert and cannot be null");
     }
     else
     {
         this.AlertName = AlertName;
     }
     // to ensure "Active" is required (not null)
     if (Active == null)
     {
         throw new InvalidDataException("Active is a required property for StoreAlert and cannot be null");
     }
     else
     {
         this.Active = Active;
     }
     this.Links      = Links;
     this.Properties = Properties;
 }