/// <summary>
 /// Initializes a new instance of the <see cref="RequestTimeFilterFast" /> class.
 /// </summary>
 /// <param name="locations">locations (required).</param>
 /// <param name="arrivalSearches">arrivalSearches (required).</param>
 public RequestTimeFilterFast(List <RequestLocation> locations = default(List <RequestLocation>), RequestTimeFilterFastArrivalSearches arrivalSearches = default(RequestTimeFilterFastArrivalSearches))
 {
     // to ensure "locations" is required (not null)
     this.Locations = locations ?? throw new ArgumentNullException("locations is a required property for RequestTimeFilterFast and cannot be null");;
     // to ensure "arrivalSearches" is required (not null)
     this.ArrivalSearches = arrivalSearches ?? throw new ArgumentNullException("arrivalSearches is a required property for RequestTimeFilterFast and cannot be null");;
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestTimeFilterFast" /> class.
        /// </summary>
        /// <param name="locations">locations (required).</param>
        /// <param name="arrivalSearches">arrivalSearches (required).</param>
        public RequestTimeFilterFast(List <RequestLocation> locations = default(List <RequestLocation>), RequestTimeFilterFastArrivalSearches arrivalSearches = default(RequestTimeFilterFastArrivalSearches))
        {
            // to ensure "locations" is required (not null)
            if (locations == null)
            {
                throw new InvalidDataException("locations is a required property for RequestTimeFilterFast and cannot be null");
            }
            else
            {
                this.Locations = locations;
            }

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