/// <summary> /// Initializes a new instance of the <see cref="EdFiCourseReadable" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="courseCode">A unique alphanumeric code assigned to a course. (required).</param> /// <param name="identificationCodes">An unordered collection of courseIdentificationCodes. The code that identifies the organization of subject matter and related learning experiences provided for the instruction of students. (required).</param> /// <param name="educationOrganizationReference">educationOrganizationReference (required).</param> /// <param name="courseDefinedByDescriptor">Specifies whether the course was defined by the SEA, LEA, School, or national organization..</param> /// <param name="courseDescription">A description of the content standards and goals covered in the course. Reference may be made to state or national content standards..</param> /// <param name="courseTitle">The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, and language arts). (required).</param> /// <param name="dateCourseAdopted">Date the course was adopted by the education agency..</param> /// <param name="highSchoolCourseRequirement">An indication that this course may satisfy high school graduation requirements in the course's subject area..</param> /// <param name="learningStandards">An unordered collection of courseLearningStandards. Learning Standard(s) to be taught by the course..</param> /// <param name="levelCharacteristics">An unordered collection of courseLevelCharacteristics. The type of specific program or designation with which the course is associated (e.g., AP, IB, Dual Credit, CTE)..</param> /// <param name="maximumAvailableCredits">The value of credits or units of value awarded for the completion of a course..</param> /// <param name="numberOfParts">The number of parts identified for a course. (required).</param> /// <param name="offeredGradeLevels">An unordered collection of courseOfferedGradeLevels. The grade levels in which the course is offered..</param> /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="ext">ext.</param> public EdFiCourseReadable(string id = default(string), string courseCode = default(string), List <EdFiCourseIdentificationCodeReadable> identificationCodes = default(List <EdFiCourseIdentificationCodeReadable>), EdFiEducationOrganizationReference educationOrganizationReference = default(EdFiEducationOrganizationReference), string courseDefinedByDescriptor = default(string), string courseDescription = default(string), string courseTitle = default(string), DateTime?dateCourseAdopted = default(DateTime?), bool?highSchoolCourseRequirement = default(bool?), List <EdFiCourseLearningStandardReadable> learningStandards = default(List <EdFiCourseLearningStandardReadable>), List <EdFiCourseLevelCharacteristicReadable> levelCharacteristics = default(List <EdFiCourseLevelCharacteristicReadable>), double?maximumAvailableCredits = default(double?), int?numberOfParts = default(int?), List <EdFiCourseOfferedGradeLevelReadable> offeredGradeLevels = default(List <EdFiCourseOfferedGradeLevelReadable>), string etag = default(string), CourseExtensionsReadable ext = default(CourseExtensionsReadable)) { // to ensure "courseCode" is required (not null) if (courseCode == null) { throw new InvalidDataException("courseCode is a required property for EdFiCourseReadable and cannot be null"); } else { this.CourseCode = courseCode; } // to ensure "identificationCodes" is required (not null) if (identificationCodes == null) { throw new InvalidDataException("identificationCodes is a required property for EdFiCourseReadable and cannot be null"); } else { this.IdentificationCodes = identificationCodes; } // to ensure "educationOrganizationReference" is required (not null) if (educationOrganizationReference == null) { throw new InvalidDataException("educationOrganizationReference is a required property for EdFiCourseReadable and cannot be null"); } else { this.EducationOrganizationReference = educationOrganizationReference; } // to ensure "courseTitle" is required (not null) if (courseTitle == null) { throw new InvalidDataException("courseTitle is a required property for EdFiCourseReadable and cannot be null"); } else { this.CourseTitle = courseTitle; } // to ensure "numberOfParts" is required (not null) if (numberOfParts == null) { throw new InvalidDataException("numberOfParts is a required property for EdFiCourseReadable and cannot be null"); } else { this.NumberOfParts = numberOfParts; } this.Id = id; this.CourseDefinedByDescriptor = courseDefinedByDescriptor; this.CourseDescription = courseDescription; this.DateCourseAdopted = dateCourseAdopted; this.HighSchoolCourseRequirement = highSchoolCourseRequirement; this.LearningStandards = learningStandards; this.LevelCharacteristics = levelCharacteristics; this.MaximumAvailableCredits = maximumAvailableCredits; this.OfferedGradeLevels = offeredGradeLevels; this.Etag = etag; this.Ext = ext; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiCourseReadable" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="CourseCode">A unique alphanumeric code assigned to a course. (required).</param> /// <param name="IdentificationCodes">An unordered collection of courseIdentificationCodes. The code that identifies the organization of subject matter and related learning experiences provided for the instruction of students. (required).</param> /// <param name="EducationOrganizationReference">EducationOrganizationReference (required).</param> /// <param name="CourseDefinedByDescriptor">Specifies whether the course was defined by the SEA, LEA, School, or national organization..</param> /// <param name="CourseDescription">A description of the content standards and goals covered in the course. Reference may be made to state or national content standards..</param> /// <param name="CourseTitle">The descriptive name given to a course of study offered in a school or other institution or organization. In departmentalized classes at the elementary, secondary, and postsecondary levels (and for staff development activities), this refers to the name by which a course is identified (e.g., American History, English III). For elementary and other non-departmentalized classes, it refers to any portion of the instruction for which a grade or report is assigned (e.g., reading, composition, spelling, and language arts). (required).</param> /// <param name="DateCourseAdopted">Date the course was adopted by the education agency..</param> /// <param name="HighSchoolCourseRequirement">An indication that this course may satisfy high school graduation requirements in the course's subject area..</param> /// <param name="LearningStandards">An unordered collection of courseLearningStandards. Learning Standard(s) to be taught by the course..</param> /// <param name="LevelCharacteristics">An unordered collection of courseLevelCharacteristics. The type of specific program or designation with which the course is associated (e.g., AP, IB, Dual Credit, CTE)..</param> /// <param name="MaximumAvailableCredits">The value of credits or units of value awarded for the completion of a course..</param> /// <param name="NumberOfParts">The number of parts identified for a course. (required).</param> /// <param name="OfferedGradeLevels">An unordered collection of courseOfferedGradeLevels. The grade levels in which the course is offered..</param> /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiCourseReadable(string Id = default(string), string CourseCode = default(string), List <EdFiCourseIdentificationCodeReadable> IdentificationCodes = default(List <EdFiCourseIdentificationCodeReadable>), EdFiEducationOrganizationReference EducationOrganizationReference = default(EdFiEducationOrganizationReference), string CourseDefinedByDescriptor = default(string), string CourseDescription = default(string), string CourseTitle = default(string), DateTime?DateCourseAdopted = default(DateTime?), bool?HighSchoolCourseRequirement = default(bool?), List <EdFiCourseLearningStandardReadable> LearningStandards = default(List <EdFiCourseLearningStandardReadable>), List <EdFiCourseLevelCharacteristicReadable> LevelCharacteristics = default(List <EdFiCourseLevelCharacteristicReadable>), double?MaximumAvailableCredits = default(double?), int?NumberOfParts = default(int?), List <EdFiCourseOfferedGradeLevelReadable> OfferedGradeLevels = default(List <EdFiCourseOfferedGradeLevelReadable>), string Etag = default(string), CourseExtensionsReadable Ext = default(CourseExtensionsReadable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiCourseReadable and cannot be null"); } else { this.Id = Id; } // to ensure "CourseCode" is required (not null) if (CourseCode == null) { throw new InvalidDataException("CourseCode is a required property for EdFiCourseReadable and cannot be null"); } else { this.CourseCode = CourseCode; } // to ensure "IdentificationCodes" is required (not null) if (IdentificationCodes == null) { throw new InvalidDataException("IdentificationCodes is a required property for EdFiCourseReadable and cannot be null"); } else { this.IdentificationCodes = IdentificationCodes; } // to ensure "EducationOrganizationReference" is required (not null) if (EducationOrganizationReference == null) { throw new InvalidDataException("EducationOrganizationReference is a required property for EdFiCourseReadable and cannot be null"); } else { this.EducationOrganizationReference = EducationOrganizationReference; } // to ensure "CourseTitle" is required (not null) if (CourseTitle == null) { throw new InvalidDataException("CourseTitle is a required property for EdFiCourseReadable and cannot be null"); } else { this.CourseTitle = CourseTitle; } // to ensure "NumberOfParts" is required (not null) if (NumberOfParts == null) { throw new InvalidDataException("NumberOfParts is a required property for EdFiCourseReadable and cannot be null"); } else { this.NumberOfParts = NumberOfParts; } this.CourseDefinedByDescriptor = CourseDefinedByDescriptor; this.CourseDescription = CourseDescription; this.DateCourseAdopted = DateCourseAdopted; this.HighSchoolCourseRequirement = HighSchoolCourseRequirement; this.LearningStandards = LearningStandards; this.LevelCharacteristics = LevelCharacteristics; this.MaximumAvailableCredits = MaximumAvailableCredits; this.OfferedGradeLevels = OfferedGradeLevels; this.Etag = Etag; this.Ext = Ext; }