Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiGradingPeriod" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="GradingPeriodDescriptor">The name of the period for which grades are reported. (required).</param>
 /// <param name="PeriodSequence">The sequential order of this period relative to other periods. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SchoolYearTypeReference">SchoolYearTypeReference (required).</param>
 /// <param name="BeginDate">Month, day, and year of the first day of the GradingPeriod. (required).</param>
 /// <param name="EndDate">Month, day, and year of the last day of the GradingPeriod. (required).</param>
 /// <param name="TotalInstructionalDays">Total days available for educational instruction during the GradingPeriod. (required).</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiGradingPeriod(string Id = default(string), string GradingPeriodDescriptor = default(string), int?PeriodSequence = default(int?), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), DateTime?BeginDate = default(DateTime?), DateTime?EndDate = default(DateTime?), int?TotalInstructionalDays = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "GradingPeriodDescriptor" is required (not null)
     if (GradingPeriodDescriptor == null)
     {
         throw new InvalidDataException("GradingPeriodDescriptor is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.GradingPeriodDescriptor = GradingPeriodDescriptor;
     }
     // to ensure "PeriodSequence" is required (not null)
     if (PeriodSequence == null)
     {
         throw new InvalidDataException("PeriodSequence is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.PeriodSequence = PeriodSequence;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiGradingPeriod 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 EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.SchoolYearTypeReference = SchoolYearTypeReference;
     }
     // to ensure "BeginDate" is required (not null)
     if (BeginDate == null)
     {
         throw new InvalidDataException("BeginDate is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "EndDate" is required (not null)
     if (EndDate == null)
     {
         throw new InvalidDataException("EndDate is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.EndDate = EndDate;
     }
     // to ensure "TotalInstructionalDays" is required (not null)
     if (TotalInstructionalDays == null)
     {
         throw new InvalidDataException("TotalInstructionalDays is a required property for EdFiGradingPeriod and cannot be null");
     }
     else
     {
         this.TotalInstructionalDays = TotalInstructionalDays;
     }
     this.Etag = Etag;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStaffSchoolAssociation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="ProgramAssignmentDescriptor">The name of the program for which the individual is assigned; for example:          Regular education          Title I-Academic          Title I-Non-Academic          Special Education          Bilingual/English as a Second Language. (required).</param>
 /// <param name="CalendarReference">CalendarReference.</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SchoolYearTypeReference">SchoolYearTypeReference.</param>
 /// <param name="StaffReference">StaffReference (required).</param>
 /// <param name="AcademicSubjects">An unordered collection of staffSchoolAssociationAcademicSubjects. The teaching field taught by an individual, for example English/Language Arts, Reading, Mathematics, Science, Social Sciences, etc..</param>
 /// <param name="GradeLevels">An unordered collection of staffSchoolAssociationGradeLevels. The set of grade levels for which the individual&#39;s assignment is responsible..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStaffSchoolAssociation(string Id = default(string), string ProgramAssignmentDescriptor = default(string), EdFiCalendarReference CalendarReference = default(EdFiCalendarReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStaffReference StaffReference = default(EdFiStaffReference), List <EdFiStaffSchoolAssociationAcademicSubject> AcademicSubjects = default(List <EdFiStaffSchoolAssociationAcademicSubject>), List <EdFiStaffSchoolAssociationGradeLevel> GradeLevels = default(List <EdFiStaffSchoolAssociationGradeLevel>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStaffSchoolAssociation and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ProgramAssignmentDescriptor" is required (not null)
     if (ProgramAssignmentDescriptor == null)
     {
         throw new InvalidDataException("ProgramAssignmentDescriptor is a required property for EdFiStaffSchoolAssociation and cannot be null");
     }
     else
     {
         this.ProgramAssignmentDescriptor = ProgramAssignmentDescriptor;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiStaffSchoolAssociation and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "StaffReference" is required (not null)
     if (StaffReference == null)
     {
         throw new InvalidDataException("StaffReference is a required property for EdFiStaffSchoolAssociation and cannot be null");
     }
     else
     {
         this.StaffReference = StaffReference;
     }
     this.CalendarReference       = CalendarReference;
     this.SchoolYearTypeReference = SchoolYearTypeReference;
     this.AcademicSubjects        = AcademicSubjects;
     this.GradeLevels             = GradeLevels;
     this.Etag = Etag;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseOffering" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="LocalCourseCode">The local code assigned by the School that identifies the course offering provided for the instruction of students. (required).</param>
 /// <param name="CourseReference">CourseReference (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SessionReference">SessionReference (required).</param>
 /// <param name="CourseLevelCharacteristics">An unordered collection of courseOfferingCourseLevelCharacteristics. The type of specific program or designation with which the course offering is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course level..</param>
 /// <param name="CurriculumUseds">An unordered collection of courseOfferingCurriculumUseds. The type of curriculum used in an early learning classroom or group..</param>
 /// <param name="InstructionalTimePlanned">The planned total number of clock minutes of instruction for this course offering. Generally, this should be at least as many minutes as is required for completion by the related state- or district-defined course..</param>
 /// <param name="LocalCourseTitle">The descriptive name given to a course of study offered in the school, if different from the CourseTitle..</param>
 /// <param name="OfferedGradeLevels">An unordered collection of courseOfferingOfferedGradeLevels. The grade levels in which the course is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course level..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiCourseOffering(string Id = default(string), string LocalCourseCode = default(string), EdFiCourseReference CourseReference = default(EdFiCourseReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSessionReference SessionReference = default(EdFiSessionReference), List <EdFiCourseOfferingCourseLevelCharacteristic> CourseLevelCharacteristics = default(List <EdFiCourseOfferingCourseLevelCharacteristic>), List <EdFiCourseOfferingCurriculumUsed> CurriculumUseds = default(List <EdFiCourseOfferingCurriculumUsed>), int?InstructionalTimePlanned = default(int?), string LocalCourseTitle = default(string), List <EdFiCourseOfferingOfferedGradeLevel> OfferedGradeLevels = default(List <EdFiCourseOfferingOfferedGradeLevel>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "LocalCourseCode" is required (not null)
     if (LocalCourseCode == null)
     {
         throw new InvalidDataException("LocalCourseCode is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.LocalCourseCode = LocalCourseCode;
     }
     // to ensure "CourseReference" is required (not null)
     if (CourseReference == null)
     {
         throw new InvalidDataException("CourseReference is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.CourseReference = CourseReference;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "SessionReference" is required (not null)
     if (SessionReference == null)
     {
         throw new InvalidDataException("SessionReference is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.SessionReference = SessionReference;
     }
     this.CourseLevelCharacteristics = CourseLevelCharacteristics;
     this.CurriculumUseds            = CurriculumUseds;
     this.InstructionalTimePlanned   = InstructionalTimePlanned;
     this.LocalCourseTitle           = LocalCourseTitle;
     this.OfferedGradeLevels         = OfferedGradeLevels;
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiFeederSchoolAssociation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="BeginDate">The month, day, and year of the first day of the feeder school association. (required).</param>
 /// <param name="FeederSchoolReference">FeederSchoolReference (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="EndDate">The month, day, and year of the last day of the feeder school association..</param>
 /// <param name="FeederRelationshipDescription">Describes the relationship from the feeder school to the receiving school, for example by program emphasis, such as special education, language immersion, science, or performing art..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiFeederSchoolAssociation(string Id = default(string), DateTime?BeginDate = default(DateTime?), EdFiSchoolReference FeederSchoolReference = default(EdFiSchoolReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), DateTime?EndDate = default(DateTime?), string FeederRelationshipDescription = 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 EdFiFeederSchoolAssociation and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "BeginDate" is required (not null)
     if (BeginDate == null)
     {
         throw new InvalidDataException("BeginDate is a required property for EdFiFeederSchoolAssociation and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "FeederSchoolReference" is required (not null)
     if (FeederSchoolReference == null)
     {
         throw new InvalidDataException("FeederSchoolReference is a required property for EdFiFeederSchoolAssociation and cannot be null");
     }
     else
     {
         this.FeederSchoolReference = FeederSchoolReference;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiFeederSchoolAssociation and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     this.EndDate = EndDate;
     this.FeederRelationshipDescription = FeederRelationshipDescription;
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiClassPeriod" /> 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="OfficialAttendancePeriod">Indicator of whether this class period is used for official daily attendance..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiClassPeriod(string Id = default(string), string ClassPeriodName = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), List <EdFiClassPeriodMeetingTime> MeetingTimes = default(List <EdFiClassPeriodMeetingTime>), bool?OfficialAttendancePeriod = default(bool?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiClassPeriod 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 EdFiClassPeriod 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 EdFiClassPeriod and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     this.MeetingTimes             = MeetingTimes;
     this.OfficialAttendancePeriod = OfficialAttendancePeriod;
     this.Etag = Etag;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiLocation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="ClassroomIdentificationCode">A unique number or alphanumeric code assigned to a room by a school, school system, state, or other agency or entity. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="MaximumNumberOfSeats">The most number of seats the class can maintain..</param>
 /// <param name="OptimalNumberOfSeats">The number of seats that is most favorable to the class..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiLocation(string Id = default(string), string ClassroomIdentificationCode = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), int?MaximumNumberOfSeats = default(int?), int?OptimalNumberOfSeats = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiLocation and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ClassroomIdentificationCode" is required (not null)
     if (ClassroomIdentificationCode == null)
     {
         throw new InvalidDataException("ClassroomIdentificationCode is a required property for EdFiLocation and cannot be null");
     }
     else
     {
         this.ClassroomIdentificationCode = ClassroomIdentificationCode;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiLocation and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     this.MaximumNumberOfSeats = MaximumNumberOfSeats;
     this.OptimalNumberOfSeats = OptimalNumberOfSeats;
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiRestraintEvent" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="RestraintEventIdentifier">A unique number or alphanumeric code assigned to a restraint event by a school, school system, state, or other agency or entity. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="EducationalEnvironmentDescriptor">The setting where the RestraintEvent was exercised..</param>
 /// <param name="EventDate">Month, day, and year of the RestraintEvent. (required).</param>
 /// <param name="Programs">An unordered collection of restraintEventPrograms. The special education program associated with the RestraintEvent..</param>
 /// <param name="Reasons">An unordered collection of restraintEventReasons. A categorization of the circumstances or reason for the RestraintEvent..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiRestraintEvent(string Id = default(string), string RestraintEventIdentifier = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string EducationalEnvironmentDescriptor = default(string), DateTime?EventDate = default(DateTime?), List <EdFiRestraintEventProgram> Programs = default(List <EdFiRestraintEventProgram>), List <EdFiRestraintEventReason> Reasons = default(List <EdFiRestraintEventReason>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiRestraintEvent and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "RestraintEventIdentifier" is required (not null)
     if (RestraintEventIdentifier == null)
     {
         throw new InvalidDataException("RestraintEventIdentifier is a required property for EdFiRestraintEvent and cannot be null");
     }
     else
     {
         this.RestraintEventIdentifier = RestraintEventIdentifier;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiRestraintEvent 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 EdFiRestraintEvent and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     // to ensure "EventDate" is required (not null)
     if (EventDate == null)
     {
         throw new InvalidDataException("EventDate is a required property for EdFiRestraintEvent and cannot be null");
     }
     else
     {
         this.EventDate = EventDate;
     }
     this.EducationalEnvironmentDescriptor = EducationalEnvironmentDescriptor;
     this.Programs = Programs;
     this.Reasons  = Reasons;
     this.Etag     = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAssociation" /> 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="CalendarReference">CalendarReference.</param>
 /// <param name="ClassOfSchoolYearTypeReference">ClassOfSchoolYearTypeReference.</param>
 /// <param name="GraduationPlanReference">GraduationPlanReference.</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SchoolYearTypeReference">SchoolYearTypeReference.</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="EducationPlans">An unordered collection of studentSchoolAssociationEducationPlans. The type of education plan(s) the student is following, if appropriate..</param>
 /// <param name="EmployedWhileEnrolled">An individual who is a paid employee or works in his or her own business, profession, or farm and at the same time is enrolled in secondary, postsecondary, or adult education..</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="EntryGradeLevelReasonDescriptor">The primary reason as to why a staff member determined that a student should be promoted or not (or be demoted) at the end of a given school term..</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&#39;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="PrimarySchool">Indicates if a given enrollment record should be considered the primary record for a student..</param>
 /// <param name="RepeatGradeIndicator">An indicator of whether the student is enrolling to repeat a grade level, either by failure or an agreement to hold the student back..</param>
 /// <param name="ResidencyStatusDescriptor">An indication of the location of a persons legal residence relative to (within or outside of) the boundaries of the public school attended and its administrative unit..</param>
 /// <param name="SchoolChoiceTransfer">An indication of whether students transferred in or out of the school did so during the school year under the provisions for public school choice in accordance with Title I, Part A, Section 1116..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="Ext">Ext.</param>
 public EdFiStudentSchoolAssociation(string Id = default(string), DateTime?EntryDate = default(DateTime?), EdFiCalendarReference CalendarReference = default(EdFiCalendarReference), EdFiSchoolYearTypeReference ClassOfSchoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiGraduationPlanReference GraduationPlanReference = default(EdFiGraduationPlanReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), List <EdFiStudentSchoolAssociationEducationPlan> EducationPlans = default(List <EdFiStudentSchoolAssociationEducationPlan>), bool?EmployedWhileEnrolled = default(bool?), string EntryGradeLevelDescriptor = default(string), string EntryGradeLevelReasonDescriptor = default(string), string EntryTypeDescriptor = default(string), DateTime?ExitWithdrawDate = default(DateTime?), string ExitWithdrawTypeDescriptor = default(string), bool?PrimarySchool = default(bool?), bool?RepeatGradeIndicator = default(bool?), string ResidencyStatusDescriptor = default(string), bool?SchoolChoiceTransfer = default(bool?), string Etag = default(string), StudentSchoolAssociationExtensions Ext = default(StudentSchoolAssociationExtensions))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentSchoolAssociation 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 EdFiStudentSchoolAssociation 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 EdFiStudentSchoolAssociation 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 EdFiStudentSchoolAssociation 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 EdFiStudentSchoolAssociation and cannot be null");
     }
     else
     {
         this.EntryGradeLevelDescriptor = EntryGradeLevelDescriptor;
     }
     this.CalendarReference = CalendarReference;
     this.ClassOfSchoolYearTypeReference = ClassOfSchoolYearTypeReference;
     this.GraduationPlanReference        = GraduationPlanReference;
     this.SchoolYearTypeReference        = SchoolYearTypeReference;
     this.EducationPlans                  = EducationPlans;
     this.EmployedWhileEnrolled           = EmployedWhileEnrolled;
     this.EntryGradeLevelReasonDescriptor = EntryGradeLevelReasonDescriptor;
     this.EntryTypeDescriptor             = EntryTypeDescriptor;
     this.ExitWithdrawDate                = ExitWithdrawDate;
     this.ExitWithdrawTypeDescriptor      = ExitWithdrawTypeDescriptor;
     this.PrimarySchool             = PrimarySchool;
     this.RepeatGradeIndicator      = RepeatGradeIndicator;
     this.ResidencyStatusDescriptor = ResidencyStatusDescriptor;
     this.SchoolChoiceTransfer      = SchoolChoiceTransfer;
     this.Etag = Etag;
     this.Ext  = Ext;
 }
Exemple #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiAcademicWeek" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="WeekIdentifier">The school label for the week. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="BeginDate">The start date for the academic week. (required).</param>
 /// <param name="EndDate">The end date for the academic week. (required).</param>
 /// <param name="TotalInstructionalDays">The total instructional days during the academic week. (required).</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiAcademicWeek(string Id = default(string), string WeekIdentifier = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), DateTime?BeginDate = default(DateTime?), DateTime?EndDate = default(DateTime?), int?TotalInstructionalDays = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "WeekIdentifier" is required (not null)
     if (WeekIdentifier == null)
     {
         throw new InvalidDataException("WeekIdentifier is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.WeekIdentifier = WeekIdentifier;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "BeginDate" is required (not null)
     if (BeginDate == null)
     {
         throw new InvalidDataException("BeginDate is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "EndDate" is required (not null)
     if (EndDate == null)
     {
         throw new InvalidDataException("EndDate is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.EndDate = EndDate;
     }
     // to ensure "TotalInstructionalDays" is required (not null)
     if (TotalInstructionalDays == null)
     {
         throw new InvalidDataException("TotalInstructionalDays is a required property for EdFiAcademicWeek and cannot be null");
     }
     else
     {
         this.TotalInstructionalDays = TotalInstructionalDays;
     }
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiDisciplineIncident" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="IncidentIdentifier">A locally assigned unique identifier (within the school or school district) to identify each specific DisciplineIncident or occurrence. The same identifier should be used to document the entire DisciplineIncident even if it included multiple offenses and multiple offenders. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="StaffReference">StaffReference.</param>
 /// <param name="Behaviors">An unordered collection of disciplineIncidentBehaviors. Describes behavior by category and provides a detailed description..</param>
 /// <param name="CaseNumber">The case number assigned to the DisciplineIncident by law enforcement or other organization..</param>
 /// <param name="IncidentCost">The value of any quantifiable monetary loss directly resulting from the DisciplineIncident. Examples include the value of repairs necessitated by vandalism of a school facility, or the value of personnel resources used for repairs or consumed by the incident..</param>
 /// <param name="IncidentDate">The month, day, and year on which the DisciplineIncident occurred. (required).</param>
 /// <param name="IncidentDescription">The description for an incident..</param>
 /// <param name="IncidentLocationDescriptor">Identifies where the DisciplineIncident occurred and whether or not it occurred on school, for example:          On school          Administrative offices area          Cafeteria area          Classroom          Hallway or stairs          ....</param>
 /// <param name="IncidentTime">An indication of the time of day the incident took place..</param>
 /// <param name="ReportedToLawEnforcement">Indicator of whether the incident was reported to law enforcement..</param>
 /// <param name="ReporterDescriptionDescriptor">Information on the type of individual who reported the DisciplineIncident. When known and/or if useful, use a more specific option code (e.g., \&quot;Counselor\&quot; rather than \&quot;Professional Staff\&quot;); for example:          Student          Parent/guardian          Law enforcement officer          Nonschool personnel          Representative of visiting school          ....</param>
 /// <param name="ReporterName">Identifies the reporter of the DisciplineIncident by name..</param>
 /// <param name="Weapons">An unordered collection of disciplineIncidentWeapons. Identifies the type of weapon used during an incident. The Federal Gun-Free Schools Act requires states to report the number of students expelled for bringing firearms to school by type of firearm..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiDisciplineIncident(string Id = default(string), string IncidentIdentifier = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiStaffReference StaffReference = default(EdFiStaffReference), List <EdFiDisciplineIncidentBehavior> Behaviors = default(List <EdFiDisciplineIncidentBehavior>), string CaseNumber = default(string), double?IncidentCost = default(double?), DateTime?IncidentDate = default(DateTime?), string IncidentDescription = default(string), string IncidentLocationDescriptor = default(string), string IncidentTime = default(string), bool?ReportedToLawEnforcement = default(bool?), string ReporterDescriptionDescriptor = default(string), string ReporterName = default(string), List <EdFiDisciplineIncidentWeapon> Weapons = default(List <EdFiDisciplineIncidentWeapon>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiDisciplineIncident and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "IncidentIdentifier" is required (not null)
     if (IncidentIdentifier == null)
     {
         throw new InvalidDataException("IncidentIdentifier is a required property for EdFiDisciplineIncident and cannot be null");
     }
     else
     {
         this.IncidentIdentifier = IncidentIdentifier;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiDisciplineIncident and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "IncidentDate" is required (not null)
     if (IncidentDate == null)
     {
         throw new InvalidDataException("IncidentDate is a required property for EdFiDisciplineIncident and cannot be null");
     }
     else
     {
         this.IncidentDate = IncidentDate;
     }
     this.StaffReference                = StaffReference;
     this.Behaviors                     = Behaviors;
     this.CaseNumber                    = CaseNumber;
     this.IncidentCost                  = IncidentCost;
     this.IncidentDescription           = IncidentDescription;
     this.IncidentLocationDescriptor    = IncidentLocationDescriptor;
     this.IncidentTime                  = IncidentTime;
     this.ReportedToLawEnforcement      = ReportedToLawEnforcement;
     this.ReporterDescriptionDescriptor = ReporterDescriptionDescriptor;
     this.ReporterName                  = ReporterName;
     this.Weapons = Weapons;
     this.Etag    = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAttendanceEvent" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="AttendanceEventCategoryDescriptor">A code describing the attendance event, for example:          Present          Unexcused absence          Excused absence          Tardy. (required).</param>
 /// <param name="EventDate">Date for this attendance event. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SessionReference">SessionReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="AttendanceEventReason">The reported reason for a student&#39;s absence..</param>
 /// <param name="EducationalEnvironmentDescriptor">The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section..</param>
 /// <param name="EventDuration">The amount of time for the event as recognized by the school: 1 day &#x3D; 1, 1/2 day &#x3D; 0.5, 1/3 day &#x3D; 0.33..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentSchoolAttendanceEvent(string Id = default(string), string AttendanceEventCategoryDescriptor = default(string), DateTime?EventDate = default(DateTime?), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSessionReference SessionReference = default(EdFiSessionReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string AttendanceEventReason = default(string), string EducationalEnvironmentDescriptor = default(string), double?EventDuration = default(double?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "AttendanceEventCategoryDescriptor" is required (not null)
     if (AttendanceEventCategoryDescriptor == null)
     {
         throw new InvalidDataException("AttendanceEventCategoryDescriptor is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.AttendanceEventCategoryDescriptor = AttendanceEventCategoryDescriptor;
     }
     // to ensure "EventDate" is required (not null)
     if (EventDate == null)
     {
         throw new InvalidDataException("EventDate is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.EventDate = EventDate;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     // to ensure "SessionReference" is required (not null)
     if (SessionReference == null)
     {
         throw new InvalidDataException("SessionReference is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.SessionReference = SessionReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.AttendanceEventReason            = AttendanceEventReason;
     this.EducationalEnvironmentDescriptor = EducationalEnvironmentDescriptor;
     this.EventDuration = EventDuration;
     this.Etag          = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiBellSchedule" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="BellScheduleName">Name or title of the BellSchedule. (required).</param>
 /// <param name="ClassPeriods">An unordered collection of bellScheduleClassPeriods. The class periods that compose this BellSchedule. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="AlternateDayName">An alternate name for the day (e.g., Red, Blue)..</param>
 /// <param name="Dates">An unordered collection of bellScheduleDates. The dates for which the BellSchedule applies..</param>
 /// <param name="GradeLevels">An unordered collection of bellScheduleGradeLevels. The grade levels the particular BellSchedule applies to..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiBellSchedule(string Id = default(string), string BellScheduleName = default(string), List <EdFiBellScheduleClassPeriod> ClassPeriods = default(List <EdFiBellScheduleClassPeriod>), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), string AlternateDayName = default(string), List <EdFiBellScheduleDate> Dates = default(List <EdFiBellScheduleDate>), List <EdFiBellScheduleGradeLevel> GradeLevels = default(List <EdFiBellScheduleGradeLevel>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiBellSchedule and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "BellScheduleName" is required (not null)
     if (BellScheduleName == null)
     {
         throw new InvalidDataException("BellScheduleName is a required property for EdFiBellSchedule and cannot be null");
     }
     else
     {
         this.BellScheduleName = BellScheduleName;
     }
     // to ensure "ClassPeriods" is required (not null)
     if (ClassPeriods == null)
     {
         throw new InvalidDataException("ClassPeriods is a required property for EdFiBellSchedule and cannot be null");
     }
     else
     {
         this.ClassPeriods = ClassPeriods;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiBellSchedule and cannot be null");
     }
     else
     {
         this.SchoolReference = SchoolReference;
     }
     this.AlternateDayName = AlternateDayName;
     this.Dates            = Dates;
     this.GradeLevels      = GradeLevels;
     this.Etag             = Etag;
 }
Exemple #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiSection" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="SectionIdentifier">The local identifier assigned to a section. (required).</param>
 /// <param name="CourseOfferingReference">CourseOfferingReference (required).</param>
 /// <param name="LocationReference">LocationReference.</param>
 /// <param name="LocationSchoolReference">LocationSchoolReference.</param>
 /// <param name="AvailableCreditConversion">Conversion factor that when multiplied by the number of credits is equivalent to Carnegie units..</param>
 /// <param name="AvailableCredits">The value of credits or units of value awarded for the completion of a course..</param>
 /// <param name="AvailableCreditTypeDescriptor">The type of credits or units of value awarded for the completion of a course..</param>
 /// <param name="Characteristics">An unordered collection of sectionCharacteristics. Reflects important characteristics of the Section, such as whether or not attendance is taken and the Section is graded..</param>
 /// <param name="ClassPeriods">An unordered collection of sectionClassPeriods. The class period during which the Section meets..</param>
 /// <param name="CourseLevelCharacteristics">An unordered collection of sectionCourseLevelCharacteristics. The type of specific program or designation with which the section is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course Offering level..</param>
 /// <param name="EducationalEnvironmentDescriptor">The setting in which a child receives education and related services; for example:          Center-based instruction          Home-based instruction          Hospital class          Mainstream          Residential care and treatment facility          ....</param>
 /// <param name="InstructionLanguageDescriptor">The primary language of instruction, if omitted English is assumed..</param>
 /// <param name="MediumOfInstructionDescriptor">The media through which teachers provide instruction to students and students and teachers communicate about instructional matters; for example:          Technology-based instruction in classroom          Correspondence instruction          Face-to-face instruction          Virtual/On-line Distance learning          Center-based instruction          ....</param>
 /// <param name="OfferedGradeLevels">An unordered collection of sectionOfferedGradeLevels. The grade levels in which the section is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course Offering level..</param>
 /// <param name="PopulationServedDescriptor">The type of students the Section is offered and tailored to; for example:          Bilingual students          Remedial education students          Gifted and talented students          Career and Technical Education students          Special education students          ....</param>
 /// <param name="Programs">An unordered collection of sectionPrograms. Optional reference to program (e.g., CTE) to which the Section is associated..</param>
 /// <param name="SequenceOfCourse">When a section is part of a sequence of parts for a course, the number of the sequence. If the course has only one part, the value of this section attribute should be 1..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiSection(string Id = default(string), string SectionIdentifier = default(string), EdFiCourseOfferingReference CourseOfferingReference = default(EdFiCourseOfferingReference), EdFiLocationReference LocationReference = default(EdFiLocationReference), EdFiSchoolReference LocationSchoolReference = default(EdFiSchoolReference), double?AvailableCreditConversion = default(double?), double?AvailableCredits = default(double?), string AvailableCreditTypeDescriptor = default(string), List <EdFiSectionCharacteristic> Characteristics = default(List <EdFiSectionCharacteristic>), List <EdFiSectionClassPeriod> ClassPeriods = default(List <EdFiSectionClassPeriod>), List <EdFiSectionCourseLevelCharacteristic> CourseLevelCharacteristics = default(List <EdFiSectionCourseLevelCharacteristic>), string EducationalEnvironmentDescriptor = default(string), string InstructionLanguageDescriptor = default(string), string MediumOfInstructionDescriptor = default(string), List <EdFiSectionOfferedGradeLevel> OfferedGradeLevels = default(List <EdFiSectionOfferedGradeLevel>), string PopulationServedDescriptor = default(string), List <EdFiSectionProgram> Programs = default(List <EdFiSectionProgram>), int?SequenceOfCourse = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiSection and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "SectionIdentifier" is required (not null)
     if (SectionIdentifier == null)
     {
         throw new InvalidDataException("SectionIdentifier is a required property for EdFiSection and cannot be null");
     }
     else
     {
         this.SectionIdentifier = SectionIdentifier;
     }
     // to ensure "CourseOfferingReference" is required (not null)
     if (CourseOfferingReference == null)
     {
         throw new InvalidDataException("CourseOfferingReference is a required property for EdFiSection and cannot be null");
     }
     else
     {
         this.CourseOfferingReference = CourseOfferingReference;
     }
     this.LocationReference             = LocationReference;
     this.LocationSchoolReference       = LocationSchoolReference;
     this.AvailableCreditConversion     = AvailableCreditConversion;
     this.AvailableCredits              = AvailableCredits;
     this.AvailableCreditTypeDescriptor = AvailableCreditTypeDescriptor;
     this.Characteristics                  = Characteristics;
     this.ClassPeriods                     = ClassPeriods;
     this.CourseLevelCharacteristics       = CourseLevelCharacteristics;
     this.EducationalEnvironmentDescriptor = EducationalEnvironmentDescriptor;
     this.InstructionLanguageDescriptor    = InstructionLanguageDescriptor;
     this.MediumOfInstructionDescriptor    = MediumOfInstructionDescriptor;
     this.OfferedGradeLevels               = OfferedGradeLevels;
     this.PopulationServedDescriptor       = PopulationServedDescriptor;
     this.Programs         = Programs;
     this.SequenceOfCourse = SequenceOfCourse;
     this.Etag             = Etag;
 }
Exemple #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiSession" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="SessionName">The identifier for the calendar for the academic session (e.g., 2010/11, 2011 Summer). (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SchoolYearTypeReference">SchoolYearTypeReference (required).</param>
 /// <param name="AcademicWeeks">An unordered collection of sessionAcademicWeeks. The academic weeks associated with the school year..</param>
 /// <param name="BeginDate">Month, day, and year of the first day of the Session. (required).</param>
 /// <param name="EndDate">Month, day and year of the last day of the Session. (required).</param>
 /// <param name="GradingPeriods">An unordered collection of sessionGradingPeriods. Grading periods associated with the session..</param>
 /// <param name="TermDescriptor">An descriptor value indicating the term (e.g. &#39;Fall Semester&#39;, &#39;Second Quarter&#39;, &#39;Summer Semester&#39;, etc.). (required).</param>
 /// <param name="TotalInstructionalDays">The total number of instructional days in the school calendar. (required).</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiSession(string Id = default(string), string SessionName = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), List <EdFiSessionAcademicWeek> AcademicWeeks = default(List <EdFiSessionAcademicWeek>), DateTime?BeginDate = default(DateTime?), DateTime?EndDate = default(DateTime?), List <EdFiSessionGradingPeriod> GradingPeriods = default(List <EdFiSessionGradingPeriod>), string TermDescriptor = default(string), int?TotalInstructionalDays = default(int?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "SessionName" is required (not null)
     if (SessionName == null)
     {
         throw new InvalidDataException("SessionName is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.SessionName = SessionName;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiSession 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 EdFiSession and cannot be null");
     }
     else
     {
         this.SchoolYearTypeReference = SchoolYearTypeReference;
     }
     // to ensure "BeginDate" is required (not null)
     if (BeginDate == null)
     {
         throw new InvalidDataException("BeginDate is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "EndDate" is required (not null)
     if (EndDate == null)
     {
         throw new InvalidDataException("EndDate is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.EndDate = EndDate;
     }
     // to ensure "TermDescriptor" is required (not null)
     if (TermDescriptor == null)
     {
         throw new InvalidDataException("TermDescriptor is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.TermDescriptor = TermDescriptor;
     }
     // to ensure "TotalInstructionalDays" is required (not null)
     if (TotalInstructionalDays == null)
     {
         throw new InvalidDataException("TotalInstructionalDays is a required property for EdFiSession and cannot be null");
     }
     else
     {
         this.TotalInstructionalDays = TotalInstructionalDays;
     }
     this.AcademicWeeks  = AcademicWeeks;
     this.GradingPeriods = GradingPeriods;
     this.Etag           = Etag;
 }
Exemple #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiDisciplineAction" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="DisciplineActionIdentifier">Identifier assigned by the education organization to the DisciplineAction. (required).</param>
 /// <param name="DisciplineDate">The date of the DisciplineAction. (required).</param>
 /// <param name="Disciplines">An unordered collection of disciplineActionDisciplines. Type of action, such as removal from the classroom, used to discipline the student involved as a perpetrator in a discipline incident. (required).</param>
 /// <param name="StudentDisciplineIncidentAssociations">An unordered collection of disciplineActionStudentDisciplineIncidentAssociations. Reference to the DisciplineIncident associated with the DisciplineAction. (required).</param>
 /// <param name="AssignmentSchoolReference">AssignmentSchoolReference.</param>
 /// <param name="ResponsibilitySchoolReference">ResponsibilitySchoolReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="ActualDisciplineActionLength">Indicates the actual length in school days of a student&#39;s disciplinary assignment..</param>
 /// <param name="DisciplineActionLength">The length of time in school days for the DisciplineAction (e.g. removal, detention), if applicable..</param>
 /// <param name="DisciplineActionLengthDifferenceReasonDescriptor">Indicates the reason for the difference, if any, between the official and actual lengths of a student&#39;s disciplinary assignment..</param>
 /// <param name="IepPlacementMeetingIndicator">An indication as to whether an offense and/or disciplinary action resulted in a meeting of a student&#39;s Individualized Education Program (IEP) team to determine appropriate placement..</param>
 /// <param name="ReceivedEducationServicesDuringExpulsion">An indication of whether the student received educational services when removed from the regular school program for disciplinary reasons..</param>
 /// <param name="RelatedToZeroTolerancePolicy">An indication of whether or not this disciplinary action taken against a student was imposed as a consequence of state or local zero tolerance policies..</param>
 /// <param name="Staffs">An unordered collection of disciplineActionStaffs. The staff responsible for enforcing the DisciplineAction..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiDisciplineAction(string Id = default(string), string DisciplineActionIdentifier = default(string), DateTime?DisciplineDate = default(DateTime?), List <EdFiDisciplineActionDiscipline> Disciplines = default(List <EdFiDisciplineActionDiscipline>), List <EdFiDisciplineActionStudentDisciplineIncidentAssociation> StudentDisciplineIncidentAssociations = default(List <EdFiDisciplineActionStudentDisciplineIncidentAssociation>), EdFiSchoolReference AssignmentSchoolReference = default(EdFiSchoolReference), EdFiSchoolReference ResponsibilitySchoolReference = default(EdFiSchoolReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), double?ActualDisciplineActionLength = default(double?), double?DisciplineActionLength = default(double?), string DisciplineActionLengthDifferenceReasonDescriptor = default(string), bool?IepPlacementMeetingIndicator = default(bool?), bool?ReceivedEducationServicesDuringExpulsion = default(bool?), bool?RelatedToZeroTolerancePolicy = default(bool?), List <EdFiDisciplineActionStaff> Staffs = default(List <EdFiDisciplineActionStaff>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "DisciplineActionIdentifier" is required (not null)
     if (DisciplineActionIdentifier == null)
     {
         throw new InvalidDataException("DisciplineActionIdentifier is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.DisciplineActionIdentifier = DisciplineActionIdentifier;
     }
     // to ensure "DisciplineDate" is required (not null)
     if (DisciplineDate == null)
     {
         throw new InvalidDataException("DisciplineDate is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.DisciplineDate = DisciplineDate;
     }
     // to ensure "Disciplines" is required (not null)
     if (Disciplines == null)
     {
         throw new InvalidDataException("Disciplines is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.Disciplines = Disciplines;
     }
     // to ensure "StudentDisciplineIncidentAssociations" is required (not null)
     if (StudentDisciplineIncidentAssociations == null)
     {
         throw new InvalidDataException("StudentDisciplineIncidentAssociations is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.StudentDisciplineIncidentAssociations = StudentDisciplineIncidentAssociations;
     }
     // to ensure "ResponsibilitySchoolReference" is required (not null)
     if (ResponsibilitySchoolReference == null)
     {
         throw new InvalidDataException("ResponsibilitySchoolReference is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.ResponsibilitySchoolReference = ResponsibilitySchoolReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiDisciplineAction and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.AssignmentSchoolReference    = AssignmentSchoolReference;
     this.ActualDisciplineActionLength = ActualDisciplineActionLength;
     this.DisciplineActionLength       = DisciplineActionLength;
     this.DisciplineActionLengthDifferenceReasonDescriptor = DisciplineActionLengthDifferenceReasonDescriptor;
     this.IepPlacementMeetingIndicator             = IepPlacementMeetingIndicator;
     this.ReceivedEducationServicesDuringExpulsion = ReceivedEducationServicesDuringExpulsion;
     this.RelatedToZeroTolerancePolicy             = RelatedToZeroTolerancePolicy;
     this.Staffs = Staffs;
     this.Etag   = Etag;
 }
Exemple #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCalendar" /> 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 EdFiCalendar(string Id = default(string), string CalendarCode = default(string), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSchoolYearTypeReference SchoolYearTypeReference = default(EdFiSchoolYearTypeReference), string CalendarTypeDescriptor = default(string), List <EdFiCalendarGradeLevel> GradeLevels = default(List <EdFiCalendarGradeLevel>), string Etag = default(string), CalendarExtensions Ext = default(CalendarExtensions))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCalendar 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 EdFiCalendar 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 EdFiCalendar 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 EdFiCalendar 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 EdFiCalendar and cannot be null");
     }
     else
     {
         this.CalendarTypeDescriptor = CalendarTypeDescriptor;
     }
     this.GradeLevels = GradeLevels;
     this.Etag        = Etag;
     this.Ext         = Ext;
 }