/** * Builds a {@link SandboxRideRequestParameters}. */ public SandboxRideRequestParameters build() { validate(); SandboxRideRequestParameters sandboxRideRequestParameters = new SandboxRideRequestParameters(); sandboxRideRequestParameters.status = status; return sandboxRideRequestParameters; } }
/** * Builds a {@link RideUpdateParameters}. */ public RideUpdateParameters build() { validate(); return new RideUpdateParameters( endLatitude, endLongitude, endNickname, endAddress, endPlaceId); } }
/** * Builds a {@link SandboxProductRequestParameters}. */ public SandboxProductRequestParameters build() { SandboxProductRequestParameters sandboxProductRequestParameters = new SandboxProductRequestParameters(); sandboxProductRequestParameters.surge_multiplier = surgeMultiplier; sandboxProductRequestParameters.drivers_available = driversAvailable; return sandboxProductRequestParameters; } }
private static RideRequestParameters createUberPoolRideRequest() { return new RideRequestParameters.Builder() .setPickupCoordinates(PICKUP_LATITUDE, PICKUP_LONGITUDE) .setDropoffCoordinates(DROPOFF_LATITUDE, DROPOFF_LONGITUDE) .setProductId(UBER_POOL_PRODUCT_ID) .setSeatCount(2) .build(); }
/** * Builds a {@link RideRequestParameters}. */ public RideRequestParameters build() { validate(); return new RideRequestParameters(productId, startLatitude, startLongitude, startNickname, startAddress, startPlaceId, endLatitude, endLongitude, endNickname, endAddress, endPlaceId, surgeConfirmationId, paymentMethodId, seatCount, fareId); } }
/** * Sets the pickup location via place identifier. * * @param place the pickup location's nickname. */ public Builder setDropoffPlace(@Nullable Places place) { this.endPlaceId = place == null ? null : place.toString(); return this; }
@Nonnull public Builder newBuilder() { return new Builder(product_id, start_latitude, start_longitude, start_nickname, start_address, start_place_id, end_latitude, end_longitude, end_nickname, end_address, end_place_id, surge_confirmation_id, payment_method_id, seat_count, fare_id); }
public PlaceParameters build() { return new PlaceParameters(address); }
private static RideRequestParameters createRideRequest() { return new RideRequestParameters.Builder() .setPickupCoordinates(PICKUP_LATITUDE, PICKUP_LONGITUDE) .setDropoffCoordinates(DROPOFF_LATITUDE, DROPOFF_LONGITUDE) .setSeatCount(2) .build(); }
/** * Builds a {@link SandboxRideRequestParameters}. */ public SandboxRideRequestParameters build() { validate(); SandboxRideRequestParameters sandboxRideRequestParameters = new SandboxRideRequestParameters(); sandboxRideRequestParameters.status = status; return sandboxRideRequestParameters; } }
/** * Builds a {@link RideUpdateParameters}. */ public RideUpdateParameters build() { validate(); return new RideUpdateParameters( endLatitude, endLongitude, endNickname, endAddress, endPlaceId); } }
/** * Sets the dropoff location via place identifier. * * @param place the dropoff location's nickname. */ public Builder setDropoffPlace(@Nullable Places place) { this.endPlaceId = place == null ? null : place.toString(); return this; }
@Nonnull public Builder newBuilder() { return new Builder(product_id, start_latitude, start_longitude, start_nickname, start_address, start_place_id, end_latitude, end_longitude, end_nickname, end_address, end_place_id, surge_confirmation_id, payment_method_id, seat_count, fare_id); }
/** * Builds a {@link SandboxProductRequestParameters}. */ public SandboxProductRequestParameters build() { SandboxProductRequestParameters sandboxProductRequestParameters = new SandboxProductRequestParameters(); sandboxProductRequestParameters.surge_multiplier = surgeMultiplier; sandboxProductRequestParameters.drivers_available = driversAvailable; return sandboxProductRequestParameters; } }
public PlaceParameters build() { return new PlaceParameters(address); }
private static RideRequestParameters createRideRequestV1Estimate() { return new RideRequestParameters.Builder() .setPickupCoordinates(PICKUP_LATITUDE, PICKUP_LONGITUDE) .setDropoffCoordinates(DROPOFF_LATITUDE, DROPOFF_LONGITUDE) .setSeatCount(4) .build(); }
/** * Sets the pickup location via place identifier. * * @param place the pickup location's nickname. */ public Builder setDropoffPlace(@Nullable Places place) { this.endPlaceId = place == null ? null : place.toString(); return this; }
private static RideRequestParameters createUberPoolRideRequestV1Estimate() { return new RideRequestParameters.Builder() .setPickupCoordinates(PICKUP_LATITUDE, PICKUP_LONGITUDE) .setDropoffCoordinates(DROPOFF_LATITUDE, DROPOFF_LONGITUDE) .setProductId(UBER_POOL_PRODUCT_ID) .setSeatCount(4) .build(); }
/** * Sets the pickup location via place identifier. * * @param place the pickup location's nickname. */ public Builder setPickupPlace(@Nullable Places place) { this.startPlaceId = place == null ? null : place.toString(); return this; }
/** * Sets the pickup location via place identifier. * * @param place the pickup location's nickname. */ public Builder setPickupPlace(@Nullable Places place) { this.startPlaceId = place == null ? null : place.toString(); return this; }