Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MnCourseCourseAssociationWritable" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="CourseReference">CourseReference (required).</param>
 /// <param name="ToCourseReference">ToCourseReference (required).</param>
 /// <param name="Etag">A unique system-generated value that identifies the version of the resource..</param>
 public MnCourseCourseAssociationWritable(string Id = default(string), MnCourseReference CourseReference = default(MnCourseReference), MnCourseReference ToCourseReference = default(MnCourseReference), string Etag = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for MnCourseCourseAssociationWritable and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "CourseReference" is required (not null)
     if (CourseReference == null)
     {
         throw new InvalidDataException("CourseReference is a required property for MnCourseCourseAssociationWritable and cannot be null");
     }
     else
     {
         this.CourseReference = CourseReference;
     }
     // to ensure "ToCourseReference" is required (not null)
     if (ToCourseReference == null)
     {
         throw new InvalidDataException("ToCourseReference is a required property for MnCourseCourseAssociationWritable and cannot be null");
     }
     else
     {
         this.ToCourseReference = ToCourseReference;
     }
     this.Etag = Etag;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MnCourseCourseAssociationWritable" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="courseReference">courseReference (required).</param>
 /// <param name="toCourseReference">toCourseReference (required).</param>
 /// <param name="etag">A unique system-generated value that identifies the version of the resource..</param>
 public MnCourseCourseAssociationWritable(string id = default(string), MnCourseReference courseReference = default(MnCourseReference), MnCourseReference toCourseReference = default(MnCourseReference), string etag = default(string))
 {
     // to ensure "courseReference" is required (not null)
     if (courseReference == null)
     {
         throw new InvalidDataException("courseReference is a required property for MnCourseCourseAssociationWritable and cannot be null");
     }
     else
     {
         this.CourseReference = courseReference;
     }
     // to ensure "toCourseReference" is required (not null)
     if (toCourseReference == null)
     {
         throw new InvalidDataException("toCourseReference is a required property for MnCourseCourseAssociationWritable and cannot be null");
     }
     else
     {
         this.ToCourseReference = toCourseReference;
     }
     this.Id   = id;
     this.Etag = etag;
 }