コード例 #1
0
        /// <summary>
        /// Returns true if TagPostSchema instances are equal
        /// </summary>
        /// <param name="input">Instance of TagPostSchema to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(TagPostSchema input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegistrationTagsBatchSchema" /> class.
 /// </summary>
 /// <param name="registrationIds">registrationIds (required).</param>
 /// <param name="tags">tags (required).</param>
 public RegistrationTagsBatchSchema(List <string> registrationIds = default(List <string>), TagPostSchema tags = default(TagPostSchema))
 {
     // to ensure "registrationIds" is required (not null)
     if (registrationIds == null)
     {
         throw new InvalidDataException("registrationIds is a required property for RegistrationTagsBatchSchema and cannot be null");
     }
     else
     {
         this.RegistrationIds = registrationIds;
     }
     // to ensure "tags" is required (not null)
     if (tags == null)
     {
         throw new InvalidDataException("tags is a required property for RegistrationTagsBatchSchema and cannot be null");
     }
     else
     {
         this.Tags = tags;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CourseTagsBatchSchema" /> class.
 /// </summary>
 /// <param name="courseIds">courseIds (required).</param>
 /// <param name="tags">tags (required).</param>
 public CourseTagsBatchSchema(List <string> courseIds = default(List <string>), TagPostSchema tags = default(TagPostSchema))
 {
     // to ensure "courseIds" is required (not null)
     if (courseIds == null)
     {
         throw new InvalidDataException("courseIds is a required property for CourseTagsBatchSchema and cannot be null");
     }
     else
     {
         this.CourseIds = courseIds;
     }
     // to ensure "tags" is required (not null)
     if (tags == null)
     {
         throw new InvalidDataException("tags is a required property for CourseTagsBatchSchema and cannot be null");
     }
     else
     {
         this.Tags = tags;
     }
 }