Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseWritable" /> 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&#39;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 EdFiCourseWritable(string Id = default(string), string CourseCode = default(string), List <EdFiCourseIdentificationCodeWritable> IdentificationCodes = default(List <EdFiCourseIdentificationCodeWritable>), 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 <EdFiCourseLearningStandardWritable> LearningStandards = default(List <EdFiCourseLearningStandardWritable>), List <EdFiCourseLevelCharacteristicWritable> LevelCharacteristics = default(List <EdFiCourseLevelCharacteristicWritable>), double?MaximumAvailableCredits = default(double?), int?NumberOfParts = default(int?), List <EdFiCourseOfferedGradeLevelWritable> OfferedGradeLevels = default(List <EdFiCourseOfferedGradeLevelWritable>), string Etag = default(string), CourseExtensionsWritable Ext = default(CourseExtensionsWritable))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseWritable" /> 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&#39;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 EdFiCourseWritable(string id = default(string), string courseCode = default(string), List <EdFiCourseIdentificationCodeWritable> identificationCodes = default(List <EdFiCourseIdentificationCodeWritable>), 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 <EdFiCourseLearningStandardWritable> learningStandards = default(List <EdFiCourseLearningStandardWritable>), List <EdFiCourseLevelCharacteristicWritable> levelCharacteristics = default(List <EdFiCourseLevelCharacteristicWritable>), double?maximumAvailableCredits = default(double?), int?numberOfParts = default(int?), List <EdFiCourseOfferedGradeLevelWritable> offeredGradeLevels = default(List <EdFiCourseOfferedGradeLevelWritable>), string etag = default(string), CourseExtensionsWritable ext = default(CourseExtensionsWritable))
 {
     // to ensure "courseCode" is required (not null)
     if (courseCode == null)
     {
         throw new InvalidDataException("courseCode is a required property for EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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 EdFiCourseWritable 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;
 }