Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentParentAssociationWritable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="ParentReference">ParentReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="RelationDescriptor">The nature of an individual&#39;s relationship to a student; for example:          Father, Mother, Step Father, Step Mother, Foster Father, Foster Mother, Guardian, etc..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentParentAssociationWritable(string Id = default(string), EdFiParentReference ParentReference = default(EdFiParentReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string RelationDescriptor = default(string), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentParentAssociationWritable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ParentReference" is required (not null)
     if (ParentReference == null)
     {
         throw new InvalidDataException("ParentReference is a required property for EdFiStudentParentAssociationWritable and cannot be null");
     }
     else
     {
         this.ParentReference = ParentReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentParentAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.RelationDescriptor = RelationDescriptor;
     this.Etag = Etag;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentParentAssociationReadable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="parentReference">parentReference (required).</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="relationDescriptor">The nature of an individual&#39;s relationship to a student, primarily used to capture family relationships..</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentParentAssociationReadable(string id = default(string), EdFiParentReference parentReference = default(EdFiParentReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string relationDescriptor = default(string), string etag = default(string))
 {
     // to ensure "parentReference" is required (not null)
     if (parentReference == null)
     {
         throw new InvalidDataException("parentReference is a required property for EdFiStudentParentAssociationReadable and cannot be null");
     }
     else
     {
         this.ParentReference = parentReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentParentAssociationReadable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id = id;
     this.RelationDescriptor = relationDescriptor;
     this.Etag = etag;
 }