/// <summary>
 /// Initializes a new instance of the <see cref="EdFiStaffSectionAssociationReadable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="sectionReference">sectionReference (required).</param>
 /// <param name="staffReference">staffReference (required).</param>
 /// <param name="classroomPositionDescriptor">The type of position the Staff member holds in the specific class/section; for example:         Teacher of Record, Assistant Teacher, Support Teacher, Substitute Teacher... (required).</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStaffSectionAssociationReadable(string id = default(string), EdFiSectionReference sectionReference = default(EdFiSectionReference), EdFiStaffReference staffReference = default(EdFiStaffReference), string classroomPositionDescriptor = default(string), string etag = default(string))
 {
     // to ensure "sectionReference" is required (not null)
     if (sectionReference == null)
     {
         throw new InvalidDataException("sectionReference is a required property for EdFiStaffSectionAssociationReadable and cannot be null");
     }
     else
     {
         this.SectionReference = sectionReference;
     }
     // to ensure "staffReference" is required (not null)
     if (staffReference == null)
     {
         throw new InvalidDataException("staffReference is a required property for EdFiStaffSectionAssociationReadable and cannot be null");
     }
     else
     {
         this.StaffReference = staffReference;
     }
     // to ensure "classroomPositionDescriptor" is required (not null)
     if (classroomPositionDescriptor == null)
     {
         throw new InvalidDataException("classroomPositionDescriptor is a required property for EdFiStaffSectionAssociationReadable and cannot be null");
     }
     else
     {
         this.ClassroomPositionDescriptor = classroomPositionDescriptor;
     }
     this.Id   = id;
     this.Etag = etag;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSectionAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="beginDate">Month, day, and year of the Student&#39;s entry or assignment to the Section. (required).</param>
 /// <param name="sectionReference">sectionReference (required).</param>
 /// <param name="studentReference">studentReference (required).</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiStudentSectionAssociationWritable(string id = default(string), DateTime?beginDate = default(DateTime?), EdFiSectionReference sectionReference = default(EdFiSectionReference), EdFiStudentReference studentReference = default(EdFiStudentReference), string etag = default(string), StudentSectionAssociationExtensionsWritable ext = default(StudentSectionAssociationExtensionsWritable))
 {
     // to ensure "beginDate" is required (not null)
     if (beginDate == null)
     {
         throw new InvalidDataException("beginDate is a required property for EdFiStudentSectionAssociationWritable and cannot be null");
     }
     else
     {
         this.BeginDate = beginDate;
     }
     // to ensure "sectionReference" is required (not null)
     if (sectionReference == null)
     {
         throw new InvalidDataException("sectionReference is a required property for EdFiStudentSectionAssociationWritable and cannot be null");
     }
     else
     {
         this.SectionReference = sectionReference;
     }
     // to ensure "studentReference" is required (not null)
     if (studentReference == null)
     {
         throw new InvalidDataException("studentReference is a required property for EdFiStudentSectionAssociationWritable and cannot be null");
     }
     else
     {
         this.StudentReference = studentReference;
     }
     this.Id   = id;
     this.Etag = etag;
     this.Ext  = ext;
 }