Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ResponseMapInfoFeatures" /> class.
        /// </summary>
        /// <param name="publicTransport">publicTransport.</param>
        /// <param name="fares">fares (required).</param>
        /// <param name="postcodes">postcodes (required).</param>
        public ResponseMapInfoFeatures(ResponseMapInfoFeaturesPublicTransport publicTransport = default(ResponseMapInfoFeaturesPublicTransport), bool fares = default(bool), bool postcodes = default(bool))
        {
            // to ensure "fares" is required (not null)
            if (fares == null)
            {
                throw new InvalidDataException("fares is a required property for ResponseMapInfoFeatures and cannot be null");
            }
            else
            {
                this.Fares = fares;
            }

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

            this.PublicTransport = publicTransport;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ResponseMapInfoFeatures" /> class.
 /// </summary>
 /// <param name="publicTransport">publicTransport.</param>
 /// <param name="fares">fares (required).</param>
 /// <param name="postcodes">postcodes (required).</param>
 public ResponseMapInfoFeatures(ResponseMapInfoFeaturesPublicTransport publicTransport = default(ResponseMapInfoFeaturesPublicTransport), bool fares = default(bool), bool postcodes = default(bool))
 {
     this.Fares           = fares;
     this.Postcodes       = postcodes;
     this.PublicTransport = publicTransport;
 }