Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MnStudentGiftedTalentedProgramAssociation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="BeginDate">The month, day, and year on which the Student first received services. (required).</param>
 /// <param name="EducationOrganizationReference">EducationOrganizationReference (required).</param>
 /// <param name="ProgramReference">ProgramReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="EndDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="GiftedTalentedParticipationDescriptor">The Gifted Talented Participation Descriptor. (required).</param>
 /// <param name="ReasonExitedDescriptor">The reason the child left the Program within a school or district..</param>
 /// <param name="ServedOutsideOfRegularSession">Indicates whether the Student received services during the summer session or between sessions..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public MnStudentGiftedTalentedProgramAssociation(string Id = default(string), DateTime?BeginDate = default(DateTime?), EdFiEducationOrganizationReference EducationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference ProgramReference = default(EdFiProgramReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), DateTime?EndDate = default(DateTime?), string GiftedTalentedParticipationDescriptor = default(string), string ReasonExitedDescriptor = default(string), bool?ServedOutsideOfRegularSession = 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 MnStudentGiftedTalentedProgramAssociation 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 MnStudentGiftedTalentedProgramAssociation and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "EducationOrganizationReference" is required (not null)
     if (EducationOrganizationReference == null)
     {
         throw new InvalidDataException("EducationOrganizationReference is a required property for MnStudentGiftedTalentedProgramAssociation and cannot be null");
     }
     else
     {
         this.EducationOrganizationReference = EducationOrganizationReference;
     }
     // to ensure "ProgramReference" is required (not null)
     if (ProgramReference == null)
     {
         throw new InvalidDataException("ProgramReference is a required property for MnStudentGiftedTalentedProgramAssociation and cannot be null");
     }
     else
     {
         this.ProgramReference = ProgramReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for MnStudentGiftedTalentedProgramAssociation and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     // to ensure "GiftedTalentedParticipationDescriptor" is required (not null)
     if (GiftedTalentedParticipationDescriptor == null)
     {
         throw new InvalidDataException("GiftedTalentedParticipationDescriptor is a required property for MnStudentGiftedTalentedProgramAssociation and cannot be null");
     }
     else
     {
         this.GiftedTalentedParticipationDescriptor = GiftedTalentedParticipationDescriptor;
     }
     this.EndDate = EndDate;
     this.ReasonExitedDescriptor        = ReasonExitedDescriptor;
     this.ServedOutsideOfRegularSession = ServedOutsideOfRegularSession;
     this.Etag = Etag;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MnStudentSAAPProgramAssociation" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="BeginDate">The month, day, and year on which the Student first received services. (required).</param>
 /// <param name="EducationOrganizationReference">EducationOrganizationReference (required).</param>
 /// <param name="ProgramReference">ProgramReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="EndDate">The month, day, and year on which the Student exited the Program or stopped receiving services..</param>
 /// <param name="IndependentStudyIndicator">State-approved alternative programs (SAAP) that also have a state-approved Independent Study (IS) component use this flag to identify independent study participants. (required).</param>
 /// <param name="ReasonExitedDescriptor">The reason the child left the Program within a school or district..</param>
 /// <param name="SaapConcurrentIndicator">An indicator representing a Student who is enrolled less than full-time at a traditional school and who is also enrolled at a State Approved Alternative Program (SAAP). (required).</param>
 /// <param name="SaapCredits">SAAP Credits. (required).</param>
 /// <param name="ServedOutsideOfRegularSession">Indicates whether the Student received services during the summer session or between sessions..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public MnStudentSAAPProgramAssociation(string Id = default(string), DateTime?BeginDate = default(DateTime?), EdFiEducationOrganizationReference EducationOrganizationReference = default(EdFiEducationOrganizationReference), EdFiProgramReference ProgramReference = default(EdFiProgramReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), DateTime?EndDate = default(DateTime?), bool?IndependentStudyIndicator = default(bool?), string ReasonExitedDescriptor = default(string), bool?SaapConcurrentIndicator = default(bool?), int?SaapCredits = default(int?), bool?ServedOutsideOfRegularSession = 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 MnStudentSAAPProgramAssociation 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 MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.BeginDate = BeginDate;
     }
     // to ensure "EducationOrganizationReference" is required (not null)
     if (EducationOrganizationReference == null)
     {
         throw new InvalidDataException("EducationOrganizationReference is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.EducationOrganizationReference = EducationOrganizationReference;
     }
     // to ensure "ProgramReference" is required (not null)
     if (ProgramReference == null)
     {
         throw new InvalidDataException("ProgramReference is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.ProgramReference = ProgramReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     // to ensure "IndependentStudyIndicator" is required (not null)
     if (IndependentStudyIndicator == null)
     {
         throw new InvalidDataException("IndependentStudyIndicator is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.IndependentStudyIndicator = IndependentStudyIndicator;
     }
     // to ensure "SaapConcurrentIndicator" is required (not null)
     if (SaapConcurrentIndicator == null)
     {
         throw new InvalidDataException("SaapConcurrentIndicator is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.SaapConcurrentIndicator = SaapConcurrentIndicator;
     }
     // to ensure "SaapCredits" is required (not null)
     if (SaapCredits == null)
     {
         throw new InvalidDataException("SaapCredits is a required property for MnStudentSAAPProgramAssociation and cannot be null");
     }
     else
     {
         this.SaapCredits = SaapCredits;
     }
     this.EndDate = EndDate;
     this.ReasonExitedDescriptor        = ReasonExitedDescriptor;
     this.ServedOutsideOfRegularSession = ServedOutsideOfRegularSession;
     this.Etag = Etag;
 }