/// <summary>
 /// Initializes a new instance of the <see cref="EdFiCourseOfferingWritable" /> 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 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 "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for EdFiCourseOfferingWritable 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 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.Etag = Etag;
     this.Ext  = Ext;
 }
Ejemplo n.º 2
0
 /// <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;
 }