/// <summary>
 /// Initializes a new instance of the <see cref="ResponseTimeFilterPostcodeSector" /> class.
 /// </summary>
 /// <param name="code">code (required).</param>
 /// <param name="properties">properties (required).</param>
 public ResponseTimeFilterPostcodeSector(String code = default(String), ResponseTimeFilterPostcodeSectorProperties properties = default(ResponseTimeFilterPostcodeSectorProperties))
 {
     // to ensure "code" is required (not null)
     this.Code = code ?? throw new ArgumentNullException("code is a required property for ResponseTimeFilterPostcodeSector and cannot be null");;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for ResponseTimeFilterPostcodeSector and cannot be null");;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseTimeFilterPostcodeSector" /> class.
        /// </summary>
        /// <param name="code">code (required).</param>
        /// <param name="properties">properties (required).</param>
        public ResponseTimeFilterPostcodeSector(String code = default(String), ResponseTimeFilterPostcodeSectorProperties properties = default(ResponseTimeFilterPostcodeSectorProperties))
        {
            // to ensure "code" is required (not null)
            if (code == null)
            {
                throw new InvalidDataException("code is a required property for ResponseTimeFilterPostcodeSector and cannot be null");
            }
            else
            {
                this.Code = code;
            }

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