Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MnStudentSectionAssociationExtensionWritable" /> class.
 /// </summary>
 /// <param name="sectionEnrollmentTypeDescriptor">Section enrollment type..</param>
 /// <param name="collegeCourseReference">collegeCourseReference.</param>
 /// <param name="instructionalApproaches">An unordered collection of studentSectionAssociationInstructionalApproaches. Instructional approach as implemented for the student section association. General purpose but intially implemented for Early Education..</param>
 /// <param name="siteBasedInitiatives">An unordered collection of studentSectionAssociationSiteBasedInitiatives. Site-based initiative as implemented for the student section association. General purpose but intially implemented for Early Education..</param>
 public MnStudentSectionAssociationExtensionWritable(string sectionEnrollmentTypeDescriptor = default(string), EdFiCourseReference collegeCourseReference = default(EdFiCourseReference), List <MnStudentSectionAssociationInstructionalApproachWritable> instructionalApproaches = default(List <MnStudentSectionAssociationInstructionalApproachWritable>), List <MnStudentSectionAssociationSiteBasedInitiativeWritable> siteBasedInitiatives = default(List <MnStudentSectionAssociationSiteBasedInitiativeWritable>))
 {
     this.SectionEnrollmentTypeDescriptor = sectionEnrollmentTypeDescriptor;
     this.CollegeCourseReference          = collegeCourseReference;
     this.InstructionalApproaches         = instructionalApproaches;
     this.SiteBasedInitiatives            = siteBasedInitiatives;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseOfferingWritable" /> class.
 /// </summary>
 /// <param name="id">id.</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="etag">A unique system-generated value that identifies the version of the resource..</param>
 /// <param name="ext">ext.</param>
 public EdFiCourseOfferingWritable(string id = default(string), string localCourseCode = default(string), EdFiCourseReference courseReference = default(EdFiCourseReference), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), EdFiSessionReference sessionReference = default(EdFiSessionReference), string etag = default(string), CourseOfferingExtensionsWritable ext = default(CourseOfferingExtensionsWritable))
 {
     // to ensure "localCourseCode" is required (not null)
     if (localCourseCode == null)
     {
         throw new InvalidDataException("localCourseCode is a required property for EdFiCourseOfferingWritable 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 EdFiCourseOfferingWritable 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 EdFiCourseOfferingWritable 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 EdFiCourseOfferingWritable and cannot be null");
     }
     else
     {
         this.SessionReference = sessionReference;
     }
     this.Id   = id;
     this.Etag = etag;
     this.Ext  = ext;
 }