Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Template" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="DisplayName">DisplayName (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="CreatedAt">CreatedAt.</param>
 /// <param name="CreatedBy">CreatedBy.</param>
 /// <param name="ModifiedAt">ModifiedAt.</param>
 /// <param name="ModifiedBy">ModifiedBy.</param>
 /// <param name="Datasets">Datasets.</param>
 /// <param name="Type">Type.</param>
 /// <param name="TagGroups">TagGroups.</param>
 /// <param name="StandardContent">StandardContent.</param>
 /// <param name="ComposedContent">ComposedContent.</param>
 public Template(string Id = default(string), string DisplayName = default(string), string Description = default(string), string CreatedAt = default(string), IdWithName CreatedBy = default(IdWithName), string ModifiedAt = default(string), IdWithName ModifiedBy = default(IdWithName), List <TemplateDatasets> Datasets = default(List <TemplateDatasets>), TypeEnum?Type = default(TypeEnum?), List <TagGroupRef> TagGroups = default(List <TagGroupRef>), TemplateStandardContent StandardContent = default(TemplateStandardContent), TemplateComposedContent ComposedContent = default(TemplateComposedContent))
 {
     // to ensure "DisplayName" is required (not null)
     if (DisplayName == null)
     {
         throw new InvalidDataException("DisplayName is a required property for Template and cannot be null");
     }
     else
     {
         this.DisplayName = DisplayName;
     }
     this.Id              = Id;
     this.Description     = Description;
     this.CreatedAt       = CreatedAt;
     this.CreatedBy       = CreatedBy;
     this.ModifiedAt      = ModifiedAt;
     this.ModifiedBy      = ModifiedBy;
     this.Datasets        = Datasets;
     this.Type            = Type;
     this.TagGroups       = TagGroups;
     this.StandardContent = StandardContent;
     this.ComposedContent = ComposedContent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocGenSettingsTemplateComposed" /> class.
 /// </summary>
 /// <param name="Content">Content.</param>
 public DocGenSettingsTemplateComposed(TemplateComposedContent Content = default(TemplateComposedContent))
 {
     this.Content = Content;
 }