Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateListCompositionDetail" /> class.
 /// </summary>
 /// <param name="Description">The description to use for the new composition (required).</param>
 /// <param name="CheckCompositionDefinition">The definition to use if this is to create a list check composition.</param>
 /// <param name="ExportCompositionDefinition">The definition to use if this is to create a list export composition.</param>
 public CreateListCompositionDetail(string Description = default(string), CheckCompositionDefinition CheckCompositionDefinition = default(CheckCompositionDefinition), ExportCompositionDefinition ExportCompositionDefinition = default(ExportCompositionDefinition))
 {
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for CreateListCompositionDetail and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     this.CheckCompositionDefinition  = CheckCompositionDefinition;
     this.ExportCompositionDefinition = ExportCompositionDefinition;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompositionDetail" /> class.
 /// </summary>
 /// <param name="CheckCompositionDefinition">If this is a check composition, the definition of the composition.</param>
 /// <param name="ExportCompositionDefinition">If this is an export composition, the definition of the composition.</param>
 /// <param name="Id">The id of this composition (required).</param>
 /// <param name="Description">The description of this composition (required).</param>
 /// <param name="Type">The type of this composition (required).</param>
 /// <param name="SystemName">The name of the FastStats system that this composition is for (required).</param>
 public CompositionDetail(CheckCompositionDefinition CheckCompositionDefinition = default(CheckCompositionDefinition), ExportCompositionDefinition ExportCompositionDefinition = default(ExportCompositionDefinition), int?Id = default(int?), string Description = default(string), TypeEnum Type = default(TypeEnum), string SystemName = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for CompositionDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for CompositionDetail and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for CompositionDetail and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "SystemName" is required (not null)
     if (SystemName == null)
     {
         throw new InvalidDataException("SystemName is a required property for CompositionDetail and cannot be null");
     }
     else
     {
         this.SystemName = SystemName;
     }
     this.CheckCompositionDefinition  = CheckCompositionDefinition;
     this.ExportCompositionDefinition = ExportCompositionDefinition;
 }