Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TopFolders" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi (required).</param>
 /// <param name="Links">Links (required).</param>
 /// <param name="Data">Data (required).</param>
 public TopFolders(JsonApiVersion Jsonapi = null, JsonApiLinksSelf Links = null, List <Folder> Data = null)
 {
     // to ensure "Jsonapi" is required (not null)
     if (Jsonapi == null)
     {
         throw new InvalidDataException("Jsonapi is a required property for TopFolders and cannot be null");
     }
     else
     {
         this.Jsonapi = Jsonapi;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for TopFolders and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for TopFolders and cannot be null");
     }
     else
     {
         this.Data = Data;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VersionCreated" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data (required).</param>
 /// <param name="Included">Included.</param>
 /// <param name="Links">Links (required).</param>
 public VersionCreated(JsonApiVersionJsonapi Jsonapi = null, Version Data = null, List <JsonApiResource> Included = null, JsonApiLinksSelf Links = null)
 {
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for VersionCreated and cannot be null");
     }
     else
     {
         this.Data = Data;
     }
     // to ensure "Links" is required (not null)
     if (Links == null)
     {
         throw new InvalidDataException("Links is a required property for VersionCreated and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     this.Jsonapi  = Jsonapi;
     this.Included = Included;
 }