Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseOffering" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</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="CourseLevelCharacteristics">An unordered collection of courseOfferingCourseLevelCharacteristics. The type of specific program or designation with which the course offering is associated (e.g., AP, IB, Dual Credit, CTE). This collection should only be populated if it differs from the Course Level Characteristics identified at the Course level..</param>
 /// <param name="CurriculumUseds">An unordered collection of courseOfferingCurriculumUseds. The type of curriculum used in an early learning classroom or group..</param>
 /// <param name="InstructionalTimePlanned">The planned total number of clock minutes of instruction for this course offering. Generally, this should be at least as many minutes as is required for completion by the related state- or district-defined course..</param>
 /// <param name="LocalCourseTitle">The descriptive name given to a course of study offered in the school, if different from the CourseTitle..</param>
 /// <param name="OfferedGradeLevels">An unordered collection of courseOfferingOfferedGradeLevels. The grade levels in which the course is offered. This collection should only be populated if it differs from the Offered Grade Levels identified at the Course level..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiCourseOffering(string Id = default(string), string LocalCourseCode = default(string), EdFiCourseReference CourseReference = default(EdFiCourseReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSessionReference SessionReference = default(EdFiSessionReference), List <EdFiCourseOfferingCourseLevelCharacteristic> CourseLevelCharacteristics = default(List <EdFiCourseOfferingCourseLevelCharacteristic>), List <EdFiCourseOfferingCurriculumUsed> CurriculumUseds = default(List <EdFiCourseOfferingCurriculumUsed>), int?InstructionalTimePlanned = default(int?), string LocalCourseTitle = default(string), List <EdFiCourseOfferingOfferedGradeLevel> OfferedGradeLevels = default(List <EdFiCourseOfferingOfferedGradeLevel>), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "LocalCourseCode" is required (not null)
     if (LocalCourseCode == null)
     {
         throw new InvalidDataException("LocalCourseCode is a required property for EdFiCourseOffering 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 EdFiCourseOffering 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 EdFiCourseOffering 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 EdFiCourseOffering and cannot be null");
     }
     else
     {
         this.SessionReference = SessionReference;
     }
     this.CourseLevelCharacteristics = CourseLevelCharacteristics;
     this.CurriculumUseds            = CurriculumUseds;
     this.InstructionalTimePlanned   = InstructionalTimePlanned;
     this.LocalCourseTitle           = LocalCourseTitle;
     this.OfferedGradeLevels         = OfferedGradeLevels;
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EdFiStudentSchoolAttendanceEvent" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="AttendanceEventCategoryDescriptor">A code describing the attendance event, for example:          Present          Unexcused absence          Excused absence          Tardy. (required).</param>
 /// <param name="EventDate">Date for this attendance event. (required).</param>
 /// <param name="SchoolReference">SchoolReference (required).</param>
 /// <param name="SessionReference">SessionReference (required).</param>
 /// <param name="StudentReference">StudentReference (required).</param>
 /// <param name="AttendanceEventReason">The reported reason for a student&#39;s absence..</param>
 /// <param name="EducationalEnvironmentDescriptor">The setting in which a child receives education and related services. This attribute is only used if it differs from the EducationalEnvironment of the Section. This is only used in the AttendanceEvent if different from the associated Section..</param>
 /// <param name="EventDuration">The amount of time for the event as recognized by the school: 1 day &#x3D; 1, 1/2 day &#x3D; 0.5, 1/3 day &#x3D; 0.33..</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public EdFiStudentSchoolAttendanceEvent(string Id = default(string), string AttendanceEventCategoryDescriptor = default(string), DateTime?EventDate = default(DateTime?), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSessionReference SessionReference = default(EdFiSessionReference), EdFiStudentReference StudentReference = default(EdFiStudentReference), string AttendanceEventReason = default(string), string EducationalEnvironmentDescriptor = default(string), double?EventDuration = default(double?), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "AttendanceEventCategoryDescriptor" is required (not null)
     if (AttendanceEventCategoryDescriptor == null)
     {
         throw new InvalidDataException("AttendanceEventCategoryDescriptor is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.AttendanceEventCategoryDescriptor = AttendanceEventCategoryDescriptor;
     }
     // to ensure "EventDate" is required (not null)
     if (EventDate == null)
     {
         throw new InvalidDataException("EventDate is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.EventDate = EventDate;
     }
     // to ensure "SchoolReference" is required (not null)
     if (SchoolReference == null)
     {
         throw new InvalidDataException("SchoolReference is a required property for EdFiStudentSchoolAttendanceEvent 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 EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.SessionReference = SessionReference;
     }
     // to ensure "StudentReference" is required (not null)
     if (StudentReference == null)
     {
         throw new InvalidDataException("StudentReference is a required property for EdFiStudentSchoolAttendanceEvent and cannot be null");
     }
     else
     {
         this.StudentReference = StudentReference;
     }
     this.AttendanceEventReason            = AttendanceEventReason;
     this.EducationalEnvironmentDescriptor = EducationalEnvironmentDescriptor;
     this.EventDuration = EventDuration;
     this.Etag          = Etag;
 }