/// <summary> /// Initializes a new instance of the <see cref="EdFiCalendarDateWritable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="CalendarEvents">An unordered collection of calendarDateCalendarEvents. The type of scheduled or unscheduled event for the day. (required).</param> /// <param name="Date">The month, day, and year of the CalendarEvent. (required).</param> /// <param name="CalendarReference">CalendarReference (required).</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> public EdFiCalendarDateWritable(string Id = default(string), List <EdFiCalendarDateCalendarEventWritable> CalendarEvents = default(List <EdFiCalendarDateCalendarEventWritable>), DateTime?Date = default(DateTime?), EdFiCalendarReference CalendarReference = default(EdFiCalendarReference), string Etag = default(string)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiCalendarDateWritable and cannot be null"); } else { this.Id = Id; } // to ensure "CalendarEvents" is required (not null) if (CalendarEvents == null) { throw new InvalidDataException("CalendarEvents is a required property for EdFiCalendarDateWritable and cannot be null"); } else { this.CalendarEvents = CalendarEvents; } // to ensure "Date" is required (not null) if (Date == null) { throw new InvalidDataException("Date is a required property for EdFiCalendarDateWritable and cannot be null"); } else { this.Date = Date; } // to ensure "CalendarReference" is required (not null) if (CalendarReference == null) { throw new InvalidDataException("CalendarReference is a required property for EdFiCalendarDateWritable and cannot be null"); } else { this.CalendarReference = CalendarReference; } this.Etag = Etag; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociationReadable" /> class. /// </summary> /// <param name="id">id.</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="calendarReference">calendarReference.</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 recorded exit or withdraw date for the student..</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?), EdFiCalendarReference calendarReference = default(EdFiCalendarReference), 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 "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.Id = id; this.CalendarReference = calendarReference; this.SchoolYearTypeReference = schoolYearTypeReference; this.EntryTypeDescriptor = entryTypeDescriptor; this.ExitWithdrawDate = exitWithdrawDate; this.ExitWithdrawTypeDescriptor = exitWithdrawTypeDescriptor; this.Etag = etag; this.Ext = ext; }