예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodesArrivalSearch" /> class.
        /// </summary>
        /// <param name="id">id (required).</param>
        /// <param name="transportation">transportation (required).</param>
        /// <param name="travelTime">travelTime (required).</param>
        /// <param name="arrivalTime">arrivalTime (required).</param>
        /// <param name="properties">properties (required).</param>
        /// <param name="range">range.</param>
        public RequestTimeFilterPostcodesArrivalSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime arrivalTime = default(DateTime), List <RequestTimeFilterPostcodesProperty> properties = default(List <RequestTimeFilterPostcodesProperty>), RequestRangeFull range = default(RequestRangeFull))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for RequestTimeFilterPostcodesArrivalSearch and cannot be null");
            }
            else
            {
                this.Id = id;
            }

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

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

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

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

            this.Range = range;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodesArrivalSearch" /> class.
 /// </summary>
 /// <param name="id">id (required).</param>
 /// <param name="transportation">transportation (required).</param>
 /// <param name="travelTime">travelTime (required).</param>
 /// <param name="arrivalTime">arrivalTime (required).</param>
 /// <param name="properties">properties (required).</param>
 /// <param name="range">range.</param>
 public RequestTimeFilterPostcodesArrivalSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime arrivalTime = default(DateTime), List <RequestTimeFilterPostcodesProperty> properties = default(List <RequestTimeFilterPostcodesProperty>), RequestRangeFull range = default(RequestRangeFull))
 {
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for RequestTimeFilterPostcodesArrivalSearch and cannot be null");;
     // to ensure "transportation" is required (not null)
     this.Transportation = transportation ?? throw new ArgumentNullException("transportation is a required property for RequestTimeFilterPostcodesArrivalSearch and cannot be null");;
     this.TravelTime     = travelTime;
     this.ArrivalTime    = arrivalTime;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for RequestTimeFilterPostcodesArrivalSearch and cannot be null");;
     this.Range      = range;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodeSectorsDepartureSearch" /> class.
        /// </summary>
        /// <param name="id">id (required).</param>
        /// <param name="transportation">transportation (required).</param>
        /// <param name="travelTime">travelTime (required).</param>
        /// <param name="departureTime">departureTime (required).</param>
        /// <param name="reachablePostcodesThreshold">reachablePostcodesThreshold (required).</param>
        /// <param name="properties">properties (required).</param>
        /// <param name="range">range.</param>
        public RequestTimeFilterPostcodeSectorsDepartureSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime departureTime = default(DateTime), double reachablePostcodesThreshold = default(double), List <RequestTimeFilterPostcodeSectorsProperty> properties = default(List <RequestTimeFilterPostcodeSectorsProperty>), RequestRangeFull range = default(RequestRangeFull))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for RequestTimeFilterPostcodeSectorsDepartureSearch and cannot be null");
            }
            else
            {
                this.Id = id;
            }

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

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

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

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

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

            this.Range = range;
        }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestTimeMapArrivalSearch" /> class.
        /// </summary>
        /// <param name="id">id (required).</param>
        /// <param name="coords">coords (required).</param>
        /// <param name="transportation">transportation (required).</param>
        /// <param name="travelTime">travelTime (required).</param>
        /// <param name="arrivalTime">arrivalTime (required).</param>
        /// <param name="properties">properties.</param>
        /// <param name="range">range.</param>
        public RequestTimeMapArrivalSearch(string id = default(string), Coords coords = default(Coords), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime arrivalTime = default(DateTime), List <RequestTimeMapProperty> properties = default(List <RequestTimeMapProperty>), RequestRangeNoMaxResults range = default(RequestRangeNoMaxResults))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for RequestTimeMapArrivalSearch and cannot be null");
            }
            else
            {
                this.Id = id;
            }

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

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

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

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

            this.Properties = properties;
            this.Range      = range;
        }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodeSectorsDepartureSearch" /> class.
 /// </summary>
 /// <param name="id">id (required).</param>
 /// <param name="transportation">transportation (required).</param>
 /// <param name="travelTime">travelTime (required).</param>
 /// <param name="departureTime">departureTime (required).</param>
 /// <param name="reachablePostcodesThreshold">reachablePostcodesThreshold (required).</param>
 /// <param name="properties">properties (required).</param>
 /// <param name="range">range.</param>
 public RequestTimeFilterPostcodeSectorsDepartureSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime departureTime = default(DateTime), double reachablePostcodesThreshold = default(double), List <RequestTimeFilterPostcodeSectorsProperty> properties = default(List <RequestTimeFilterPostcodeSectorsProperty>), RequestRangeFull range = default(RequestRangeFull))
 {
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for RequestTimeFilterPostcodeSectorsDepartureSearch and cannot be null");;
     // to ensure "transportation" is required (not null)
     this.Transportation = transportation ?? throw new ArgumentNullException("transportation is a required property for RequestTimeFilterPostcodeSectorsDepartureSearch and cannot be null");;
     this.TravelTime     = travelTime;
     this.DepartureTime  = departureTime;
     this.ReachablePostcodesThreshold = reachablePostcodesThreshold;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for RequestTimeFilterPostcodeSectorsDepartureSearch and cannot be null");;
     this.Range      = range;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestRoutesDepartureSearch" /> class.
 /// </summary>
 /// <param name="id">id (required).</param>
 /// <param name="departureLocationId">departureLocationId (required).</param>
 /// <param name="arrivalLocationIds">arrivalLocationIds (required).</param>
 /// <param name="transportation">transportation (required).</param>
 /// <param name="departureTime">departureTime (required).</param>
 /// <param name="properties">properties (required).</param>
 /// <param name="range">range.</param>
 public RequestRoutesDepartureSearch(string id = default(string), string departureLocationId = default(string), List <string> arrivalLocationIds = default(List <string>), RequestTransportation transportation = default(RequestTransportation), DateTime departureTime = default(DateTime), List <RequestRoutesProperty> properties = default(List <RequestRoutesProperty>), RequestRangeFull range = default(RequestRangeFull))
 {
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for RequestRoutesDepartureSearch and cannot be null");;
     // to ensure "departureLocationId" is required (not null)
     this.DepartureLocationId = departureLocationId ?? throw new ArgumentNullException("departureLocationId is a required property for RequestRoutesDepartureSearch and cannot be null");;
     // to ensure "arrivalLocationIds" is required (not null)
     this.ArrivalLocationIds = arrivalLocationIds ?? throw new ArgumentNullException("arrivalLocationIds is a required property for RequestRoutesDepartureSearch and cannot be null");;
     // to ensure "transportation" is required (not null)
     this.Transportation = transportation ?? throw new ArgumentNullException("transportation is a required property for RequestRoutesDepartureSearch and cannot be null");;
     this.DepartureTime  = departureTime;
     // to ensure "properties" is required (not null)
     this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for RequestRoutesDepartureSearch and cannot be null");;
     this.Range      = range;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestTimeMapArrivalSearch" /> class.
 /// </summary>
 /// <param name="id">id (required).</param>
 /// <param name="coords">coords (required).</param>
 /// <param name="transportation">transportation (required).</param>
 /// <param name="travelTime">travelTime (required).</param>
 /// <param name="arrivalTime">arrivalTime (required).</param>
 /// <param name="properties">properties.</param>
 /// <param name="range">range.</param>
 public RequestTimeMapArrivalSearch(string id = default(string), Coords coords = default(Coords), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime arrivalTime = default(DateTime), List <RequestTimeMapProperty> properties = default(List <RequestTimeMapProperty>), RequestRangeNoMaxResults range = default(RequestRangeNoMaxResults))
 {
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for RequestTimeMapArrivalSearch and cannot be null");;
     // to ensure "coords" is required (not null)
     this.Coords = coords ?? throw new ArgumentNullException("coords is a required property for RequestTimeMapArrivalSearch and cannot be null");;
     // to ensure "transportation" is required (not null)
     this.Transportation = transportation ?? throw new ArgumentNullException("transportation is a required property for RequestTimeMapArrivalSearch and cannot be null");;
     this.TravelTime     = travelTime;
     this.ArrivalTime    = arrivalTime;
     this.Properties     = properties;
     this.Range          = range;
 }
예제 #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RequestRoutesDepartureSearch" /> class.
        /// </summary>
        /// <param name="id">id (required).</param>
        /// <param name="departureLocationId">departureLocationId (required).</param>
        /// <param name="arrivalLocationIds">arrivalLocationIds (required).</param>
        /// <param name="transportation">transportation (required).</param>
        /// <param name="departureTime">departureTime (required).</param>
        /// <param name="properties">properties (required).</param>
        /// <param name="range">range.</param>
        public RequestRoutesDepartureSearch(string id = default(string), string departureLocationId = default(string), List <string> arrivalLocationIds = default(List <string>), RequestTransportation transportation = default(RequestTransportation), DateTime departureTime = default(DateTime), List <RequestRoutesProperty> properties = default(List <RequestRoutesProperty>), RequestRangeFull range = default(RequestRangeFull))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for RequestRoutesDepartureSearch and cannot be null");
            }
            else
            {
                this.Id = id;
            }

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

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

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

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

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

            this.Range = range;
        }