/// <summary>
 /// Initializes a new instance of the <see cref="HubRelationships" /> class.
 /// </summary>
 /// <param name="Projects">Projects (required).</param>
 public HubRelationships(JsonApiRelationshipsLinksInternal Projects = null)
 {
     // to ensure "Projects" is required (not null)
     if (Projects == null)
     {
         throw new InvalidDataException("Projects is a required property for HubRelationships and cannot be null");
     }
     else
     {
         this.Projects = Projects;
     }
 }
 /// <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;
     }
 }
Esempio n. 3
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;
 }