Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Segmentation" /> class.
 /// </summary>
 /// <param name="Boundaries">Boundaries (required).</param>
 /// <param name="Themes">Themes (required).</param>
 public Segmentation(Boundaries Boundaries = null, SegmentationThemes Themes = null)
 {
     // to ensure "Boundaries" is required (not null)
     if (Boundaries == null)
     {
         throw new InvalidDataException("Boundaries is a required property for Segmentation and cannot be null");
     }
     else
     {
         this.Boundaries = Boundaries;
     }
     // to ensure "Themes" is required (not null)
     if (Themes == null)
     {
         throw new InvalidDataException("Themes is a required property for Segmentation and cannot be null");
     }
     else
     {
         this.Themes = Themes;
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Demographics" /> class.
 /// </summary>
 /// <param name="Boundaries">Boundaries (required).</param>
 /// <param name="Themes">Themes (required).</param>
 public Demographics(Boundaries Boundaries = null, DemographicsThemes Themes = null)
 {
     // to ensure "Boundaries" is required (not null)
     if (Boundaries == null)
     {
         throw new InvalidDataException("Boundaries is a required property for Demographics and cannot be null");
     }
     else
     {
         this.Boundaries = Boundaries;
     }
     // to ensure "Themes" is required (not null)
     if (Themes == null)
     {
         throw new InvalidDataException("Themes is a required property for Demographics and cannot be null");
     }
     else
     {
         this.Themes = Themes;
     }
 }