/// <summary> /// Initializes a new instance of the <see cref="EdFiCourseOfferingReadable" /> 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="Etag">A unique system-generated value that identifies the version of the resource..</param> /// <param name="Ext">Ext.</param> public EdFiCourseOfferingReadable(string Id = default(string), string LocalCourseCode = default(string), EdFiCourseReference CourseReference = default(EdFiCourseReference), EdFiSchoolReference SchoolReference = default(EdFiSchoolReference), EdFiSessionReference SessionReference = default(EdFiSessionReference), string Etag = default(string), CourseOfferingExtensionsReadable Ext = default(CourseOfferingExtensionsReadable)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable and cannot be null"); } else { this.SessionReference = SessionReference; } this.Etag = Etag; this.Ext = Ext; }
/// <summary> /// Initializes a new instance of the <see cref="EdFiCourseOfferingReadable" /> 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 EdFiCourseOfferingReadable(string id = default(string), string localCourseCode = default(string), EdFiCourseReference courseReference = default(EdFiCourseReference), EdFiSchoolReference schoolReference = default(EdFiSchoolReference), EdFiSessionReference sessionReference = default(EdFiSessionReference), string etag = default(string), CourseOfferingExtensionsReadable ext = default(CourseOfferingExtensionsReadable)) { // to ensure "localCourseCode" is required (not null) if (localCourseCode == null) { throw new InvalidDataException("localCourseCode is a required property for EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable 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 EdFiCourseOfferingReadable and cannot be null"); } else { this.SessionReference = sessionReference; } this.Id = id; this.Etag = etag; this.Ext = ext; }