/// <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;
 }
예제 #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;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCalendarDate" /> 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 EdFiCalendarDate(string Id = default(string), List <EdFiCalendarDateCalendarEvent> CalendarEvents = default(List <EdFiCalendarDateCalendarEvent>), 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 EdFiCalendarDate 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 EdFiCalendarDate 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 EdFiCalendarDate 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 EdFiCalendarDate and cannot be null");
     }
     else
     {
         this.CalendarReference = CalendarReference;
     }
     this.Etag = Etag;
 }