Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotFound" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Errors">Errors (required).</param>
 public NotFound(JsonApiVersionJsonapi Jsonapi = null, List <JsonApiErrorErrors> Errors = null)
 {
     // to ensure "Errors" is required (not null)
     if (Errors == null)
     {
         throw new InvalidDataException("Errors is a required property for NotFound and cannot be null");
     }
     else
     {
         this.Errors = Errors;
     }
     this.Jsonapi = Jsonapi;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Hubs" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data (required).</param>
 public Hubs(JsonApiVersionJsonapi Jsonapi = null, List <Hub> Data = null)
 {
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for Hubs and cannot be null");
     }
     else
     {
         this.Data = Data;
     }
     this.Jsonapi = Jsonapi;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonApiDocumentBase" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data (required).</param>
 /// <param name="Included">Included.</param>
 public JsonApiDocumentBase(JsonApiVersionJsonapi Jsonapi = null, JsonApiResource Data = null, List <JsonApiResource> Included = null)
 {
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for JsonApiDocumentBase and cannot be null");
     }
     else
     {
         this.Data = Data;
     }
     this.Jsonapi  = Jsonapi;
     this.Included = Included;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateItem" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 /// <param name="Included">Included (required).</param>
 public CreateItem(JsonApiVersionJsonapi Jsonapi = null, CreateItemData Data = null, List <CreateItemIncluded> Included = null)
 {
     // to ensure "Included" is required (not null)
     if (Included == null)
     {
         throw new InvalidDataException("Included is a required property for CreateItem and cannot be null");
     }
     else
     {
         this.Included = Included;
     }
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Version" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data (required).</param>
 /// <param name="Included">Included.</param>
 /// <param name="Links">Links (required).</param>
 /// <param name="Id">resource id (required).</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="Attributes">Attributes.</param>
 /// <param name="Meta">Meta.</param>
 /// <param name="Relationships">Relationships.</param>
 public Version(JsonApiVersionJsonapi Jsonapi = null, JsonApiResource Data = null, List <JsonApiResource> Included = null, JsonApiLinks Links = null, string Id = null, TypeEnum?Type = null, VersionAttributes Attributes = null, JsonApiMeta Meta = null, VersionRelationships Relationships = null)
 {
     // to ensure "Data" is required (not null)
     if (Data == null)
     {
         throw new InvalidDataException("Data is a required property for Version 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 Version and cannot be null");
     }
     else
     {
         this.Links = Links;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for Version and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Version and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Jsonapi       = Jsonapi;
     this.Included      = Included;
     this.Attributes    = Attributes;
     this.Meta          = Meta;
     this.Relationships = Relationships;
 }
 /// <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;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateFolder" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 public CreateFolder(JsonApiVersionJsonapi Jsonapi = null, CreateFolderData Data = null)
 {
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonApiVersion" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 public JsonApiVersion(JsonApiVersionJsonapi Jsonapi = null)
 {
     this.Jsonapi = Jsonapi;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PatchItem" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 public PatchItem(JsonApiVersionJsonapi Jsonapi = null, PatchItemData Data = null)
 {
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateStorage" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 public CreateStorage(JsonApiVersionJsonapi Jsonapi = null, CreateStorageData Data = null)
 {
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateRef" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 public CreateRef(JsonApiVersionJsonapi Jsonapi = null, CreateRefData Data = null)
 {
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }
Exemple #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PatchFolder" /> class.
 /// </summary>
 /// <param name="Jsonapi">Jsonapi.</param>
 /// <param name="Data">Data.</param>
 public PatchFolder(JsonApiVersionJsonapi Jsonapi = null, PatchFolderData Data = null)
 {
     this.Jsonapi = Jsonapi;
     this.Data    = Data;
 }