/// <summary> /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodeSectorsArrivalSearch" /> 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="reachablePostcodesThreshold">reachablePostcodesThreshold (required).</param> /// <param name="properties">properties (required).</param> /// <param name="range">range.</param> public RequestTimeFilterPostcodeSectorsArrivalSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime arrivalTime = 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 RequestTimeFilterPostcodeSectorsArrivalSearch 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 RequestTimeFilterPostcodeSectorsArrivalSearch 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 RequestTimeFilterPostcodeSectorsArrivalSearch 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 RequestTimeFilterPostcodeSectorsArrivalSearch and cannot be null"); } else { this.ArrivalTime = arrivalTime; } // to ensure "reachablePostcodesThreshold" is required (not null) if (reachablePostcodesThreshold == null) { throw new InvalidDataException("reachablePostcodesThreshold is a required property for RequestTimeFilterPostcodeSectorsArrivalSearch 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 RequestTimeFilterPostcodeSectorsArrivalSearch and cannot be null"); } else { this.Properties = properties; } this.Range = range; }
/// <summary> /// Initializes a new instance of the <see cref="RequestTimeFilterDepartureSearch" /> 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="travelTime">travelTime (required).</param> /// <param name="departureTime">departureTime (required).</param> /// <param name="properties">properties (required).</param> /// <param name="range">range.</param> public RequestTimeFilterDepartureSearch(string id = default(string), string departureLocationId = default(string), List <string> arrivalLocationIds = default(List <string>), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime departureTime = default(DateTime), List <RequestTimeFilterProperty> properties = default(List <RequestTimeFilterProperty>), RequestRangeFull range = default(RequestRangeFull)) { // to ensure "id" is required (not null) this.Id = id ?? throw new ArgumentNullException("id is a required property for RequestTimeFilterDepartureSearch and cannot be null");; // to ensure "departureLocationId" is required (not null) this.DepartureLocationId = departureLocationId ?? throw new ArgumentNullException("departureLocationId is a required property for RequestTimeFilterDepartureSearch and cannot be null");; // to ensure "arrivalLocationIds" is required (not null) this.ArrivalLocationIds = arrivalLocationIds ?? throw new ArgumentNullException("arrivalLocationIds is a required property for RequestTimeFilterDepartureSearch and cannot be null");; // to ensure "transportation" is required (not null) this.Transportation = transportation ?? throw new ArgumentNullException("transportation is a required property for RequestTimeFilterDepartureSearch and cannot be null");; this.TravelTime = travelTime; this.DepartureTime = departureTime; // to ensure "properties" is required (not null) this.Properties = properties ?? throw new ArgumentNullException("properties is a required property for RequestTimeFilterDepartureSearch and cannot be null");; this.Range = range; }
/// <summary> /// Initializes a new instance of the <see cref="RequestTimeFilterPostcodesDepartureSearch" /> 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="properties">properties (required).</param> /// <param name="range">range.</param> public RequestTimeFilterPostcodesDepartureSearch(string id = default(string), RequestTransportation transportation = default(RequestTransportation), int travelTime = default(int), DateTime departureTime = 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 RequestTimeFilterPostcodesDepartureSearch 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 RequestTimeFilterPostcodesDepartureSearch 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 RequestTimeFilterPostcodesDepartureSearch 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 RequestTimeFilterPostcodesDepartureSearch 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 RequestTimeFilterPostcodesDepartureSearch and cannot be null"); } else { this.Properties = properties; } 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) 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) 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; }