Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ComplexList" /> class.
        /// </summary>
        /// <param name="internalName">Internal name of the list.</param>
        /// <param name="publicName">Public name of the list (required).</param>
        /// <param name="language">language (required).</param>
        /// <param name="stats">stats.</param>
        public ComplexList(string internalName = default(string), string publicName = default(string), Language language = default(Language), ComplexListAllOfStats stats = default(ComplexListAllOfStats))
        {
            // to ensure "publicName" is required (not null)
            if (publicName == null)
            {
                throw new InvalidDataException("publicName is a required property for ComplexList and cannot be null");
            }
            else
            {
                this.PublicName = publicName;
            }

            // to ensure "language" is required (not null)
            if (language == null)
            {
                throw new InvalidDataException("language is a required property for ComplexList and cannot be null");
            }
            else
            {
                this.Language = language;
            }

            this.InternalName = internalName;
            this.Stats        = stats;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ComplexListAllOf" /> class.
 /// </summary>
 /// <param name="language">language.</param>
 /// <param name="stats">stats.</param>
 public ComplexListAllOf(Language language = default(Language), ComplexListAllOfStats stats = default(ComplexListAllOfStats))
 {
     this.Language = language;
     this.Stats    = stats;
 }