/// <summary> /// Initializes a new instance of the <see cref="EdFiClassPeriodReadable" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="classPeriodName">An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules). (required).</param> /// <param name="schoolReference">schoolReference (required).</param> /// <param name="meetingTimes">An unordered collection of classPeriodMeetingTimes. The meeting time(s) for a class period..</param> /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="ext">ext.</param> public EdFiClassPeriodReadable(string id = default(string), string classPeriodName = default(string), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), List <EdFiClassPeriodMeetingTimeReadable> meetingTimes = default(List <EdFiClassPeriodMeetingTimeReadable>), string etag = default(string), ClassPeriodExtensionsReadable ext = default(ClassPeriodExtensionsReadable)) { // to ensure "classPeriodName" is required (not null) if (classPeriodName == null) { throw new InvalidDataException("classPeriodName is a required property for EdFiClassPeriodReadable and cannot be null"); } else { this.ClassPeriodName = classPeriodName; } // to ensure "schoolReference" is required (not null) if (schoolReference == null) { throw new InvalidDataException("schoolReference is a required property for EdFiClassPeriodReadable and cannot be null"); } else { this.SchoolReference = schoolReference; } this.Id = id; this.MeetingTimes = meetingTimes; this.Etag = etag; this.Ext = ext; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiClassPeriodReadable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="ClassPeriodName">An indication of the portion of a typical daily session in which students receive instruction in a specified subject (e.g., morning, sixth period, block period, or AB schedules). (required).</param> /// <param name="SchoolReference">SchoolReference (required).</param> /// <param name="MeetingTimes">An unordered collection of classPeriodMeetingTimes. The meeting time(s) for a class period..</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiClassPeriodReadable(string Id = default(string), string ClassPeriodName = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), List <EdFiClassPeriodMeetingTimeReadable> MeetingTimes = default(List <EdFiClassPeriodMeetingTimeReadable>), string Etag = default(string), ClassPeriodExtensionsReadable Ext = default(ClassPeriodExtensionsReadable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiClassPeriodReadable and cannot be null"); } else { this.Id = Id; } // to ensure "ClassPeriodName" is required (not null) if (ClassPeriodName == null) { throw new InvalidDataException("ClassPeriodName is a required property for EdFiClassPeriodReadable and cannot be null"); } else { this.ClassPeriodName = ClassPeriodName; } // to ensure "SchoolReference" is required (not null) if (SchoolReference == null) { throw new InvalidDataException("SchoolReference is a required property for EdFiClassPeriodReadable and cannot be null"); } else { this.SchoolReference = SchoolReference; } this.MeetingTimes = MeetingTimes; this.Etag = Etag; this.Ext = Ext; }