/// <summary> /// Initializes a new instance of the <see cref="EdFiCalendarReadable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="CalendarCode">The identifier for the Calendar. (required).</param> /// <param name="SchoolReference">SchoolReference (required).</param> /// <param name="SchoolYearTypeReference">SchoolYearTypeReference (required).</param> /// <param name="CalendarTypeDescriptor">Indicates the type of Calendar. (required).</param> /// <param name="GradeLevels">An unordered collection of calendarGradeLevels. Indicates the GradeLevel associated with the Calendar..</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiCalendarReadable(string Id = default(string), string CalendarCode = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), string CalendarTypeDescriptor = default(string), List <EdFiCalendarGradeLevelReadable> GradeLevels = default(List <EdFiCalendarGradeLevelReadable>), string Etag = default(string), CalendarExtensionsReadable Ext = default(CalendarExtensionsReadable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiCalendarReadable and cannot be null"); } else { this.Id = Id; } // to ensure "CalendarCode" is required (not null) if (CalendarCode == null) { throw new InvalidDataException("CalendarCode is a required property for EdFiCalendarReadable and cannot be null"); } else { this.CalendarCode = CalendarCode; } // to ensure "SchoolReference" is required (not null) if (SchoolReference == null) { throw new InvalidDataException("SchoolReference is a required property for EdFiCalendarReadable and cannot be null"); } else { this.SchoolReference = SchoolReference; } // to ensure "SchoolYearTypeReference" is required (not null) if (SchoolYearTypeReference == null) { throw new InvalidDataException("SchoolYearTypeReference is a required property for EdFiCalendarReadable and cannot be null"); } else { this.SchoolYearTypeReference = SchoolYearTypeReference; } // to ensure "CalendarTypeDescriptor" is required (not null) if (CalendarTypeDescriptor == null) { throw new InvalidDataException("CalendarTypeDescriptor is a required property for EdFiCalendarReadable and cannot be null"); } else { this.CalendarTypeDescriptor = CalendarTypeDescriptor; } this.GradeLevels = GradeLevels; this.Etag = Etag; this.Ext = Ext; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationReadable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="EntryDate">The month, day, and year on which an individual enters and begins to receive instructional services in a school. (required).</param> /// <param name="SchoolReference">SchoolReference (required).</param> /// <param name="SchoolYearTypeReference">SchoolYearTypeReference.</param> /// <param name="StudentReference">StudentReference (required).</param> /// <param name="EntryGradeLevelDescriptor">The grade level or primary instructional level at which a student enters and receives services in a school or an educational institution during a given academic session. (required).</param> /// <param name="EntryTypeDescriptor">The process by which a student enters a school during a given academic session..</param> /// <param name="ExitWithdrawDate">The month, day, and year of the first day after the date of an individual's last attendance at a school (if known), the day on which an individual graduated, or the date on which it becomes known officially that an individual left school..</param> /// <param name="ExitWithdrawTypeDescriptor">The circumstances under which the student exited from membership in an educational institution..</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiStudentSchoolAssociationReadable(string Id = default(string), DateTime?EntryDate = default(DateTime?), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string EntryGradeLevelDescriptor = default(string), string EntryTypeDescriptor = default(string), DateTime?ExitWithdrawDate = default(DateTime?), string ExitWithdrawTypeDescriptor = default(string), string Etag = default(string), StudentSchoolAssociationExtensionsReadable Ext = default(StudentSchoolAssociationExtensionsReadable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiStudentSchoolAssociationReadable and cannot be null"); } else { this.Id = Id; } // to ensure "EntryDate" is required (not null) if (EntryDate == null) { throw new InvalidDataException("EntryDate is a required property for EdFiStudentSchoolAssociationReadable and cannot be null"); } else { this.EntryDate = EntryDate; } // to ensure "SchoolReference" is required (not null) if (SchoolReference == null) { throw new InvalidDataException("SchoolReference is a required property for EdFiStudentSchoolAssociationReadable and cannot be null"); } else { this.SchoolReference = SchoolReference; } // to ensure "StudentReference" is required (not null) if (StudentReference == null) { throw new InvalidDataException("StudentReference is a required property for EdFiStudentSchoolAssociationReadable and cannot be null"); } else { this.StudentReference = StudentReference; } // to ensure "EntryGradeLevelDescriptor" is required (not null) if (EntryGradeLevelDescriptor == null) { throw new InvalidDataException("EntryGradeLevelDescriptor is a required property for EdFiStudentSchoolAssociationReadable and cannot be null"); } else { this.EntryGradeLevelDescriptor = EntryGradeLevelDescriptor; } this.SchoolYearTypeReference = SchoolYearTypeReference; this.EntryTypeDescriptor = EntryTypeDescriptor; this.ExitWithdrawDate = ExitWithdrawDate; this.ExitWithdrawTypeDescriptor = ExitWithdrawTypeDescriptor; this.Etag = Etag; this.Ext = Ext; }