Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderRelationships" /> class.
 /// </summary>
 /// <param name="Parent">Parent.</param>
 /// <param name="Contents">Contents (required).</param>
 /// <param name="Refs">Refs (required).</param>
 public FolderRelationships(JsonApiRelationshipsLinksInternalResource Parent = null, JsonApiRelationshipsLinksInternal Contents = null, JsonApiRelationshipsLinksRefs Refs = null)
 {
     // to ensure "Contents" is required (not null)
     if (Contents == null)
     {
         throw new InvalidDataException("Contents is a required property for FolderRelationships and cannot be null");
     }
     else
     {
         this.Contents = Contents;
     }
     // to ensure "Refs" is required (not null)
     if (Refs == null)
     {
         throw new InvalidDataException("Refs is a required property for FolderRelationships and cannot be null");
     }
     else
     {
         this.Refs = Refs;
     }
     this.Parent = Parent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemRelationships" /> class.
 /// </summary>
 /// <param name="Parent">Parent (required).</param>
 /// <param name="Tip">Tip (required).</param>
 /// <param name="Versions">Versions (required).</param>
 /// <param name="Refs">Refs (required).</param>
 public ItemRelationships(JsonApiRelationshipsLinksInternalResource Parent = null, JsonApiRelationshipsLinksInternalResource Tip = null, JsonApiRelationshipsLinksInternal Versions = null, JsonApiRelationshipsLinksRefs Refs = null)
 {
     // to ensure "Parent" is required (not null)
     if (Parent == null)
     {
         throw new InvalidDataException("Parent is a required property for ItemRelationships and cannot be null");
     }
     else
     {
         this.Parent = Parent;
     }
     // to ensure "Tip" is required (not null)
     if (Tip == null)
     {
         throw new InvalidDataException("Tip is a required property for ItemRelationships and cannot be null");
     }
     else
     {
         this.Tip = Tip;
     }
     // to ensure "Versions" is required (not null)
     if (Versions == null)
     {
         throw new InvalidDataException("Versions is a required property for ItemRelationships and cannot be null");
     }
     else
     {
         this.Versions = Versions;
     }
     // to ensure "Refs" is required (not null)
     if (Refs == null)
     {
         throw new InvalidDataException("Refs is a required property for ItemRelationships and cannot be null");
     }
     else
     {
         this.Refs = Refs;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VersionRelationships" /> class.
 /// </summary>
 /// <param name="Item">Item (required).</param>
 /// <param name="Refs">Refs (required).</param>
 /// <param name="Storage">Storage.</param>
 /// <param name="Derivatives">Derivatives.</param>
 /// <param name="Thumbnails">Thumbnails.</param>
 public VersionRelationships(JsonApiRelationshipsLinksInternalResource Item = null, JsonApiRelationshipsLinksRefs Refs = null, JsonApiRelationshipsLinksExternalResource Storage = null, JsonApiRelationshipsLinksExternalResource Derivatives = null, JsonApiRelationshipsLinksExternalResource Thumbnails = null)
 {
     // to ensure "Item" is required (not null)
     if (Item == null)
     {
         throw new InvalidDataException("Item is a required property for VersionRelationships and cannot be null");
     }
     else
     {
         this.Item = Item;
     }
     // to ensure "Refs" is required (not null)
     if (Refs == null)
     {
         throw new InvalidDataException("Refs is a required property for VersionRelationships and cannot be null");
     }
     else
     {
         this.Refs = Refs;
     }
     this.Storage     = Storage;
     this.Derivatives = Derivatives;
     this.Thumbnails  = Thumbnails;
 }