public final class CorrectionRequest extends Object
Most CorrectionRequest.Types will require correction data except for WRONG_STATUS_OPEN AND WRONG_STATUS_CLOSED.
The type of the correction values depend on the CorrectionRequest.Type
The station ID is always required
| Modifier and Type | Class and Description |
|---|---|
static class |
CorrectionRequest.Type
The type of the correction request
|
Request.Method| Constructor and Description |
|---|
CorrectionRequest(String apiKey,
String baseUrl,
Requester requester,
CorrectionRequest.Type type) |
| Modifier and Type | Method and Description |
|---|---|
R |
execute()
Executes the request using the underlying
Requester,
which will return the requested result object |
CorrectionRequest |
setCorrectionValue(String correctionValue)
Sets the corrected value for the correction request.
|
CorrectionRequest |
setStationId(String stationId)
Sets the station ID for the correction request.
|
public CorrectionRequest(String apiKey, String baseUrl, Requester requester, CorrectionRequest.Type type)
public CorrectionRequest setStationId(String stationId)
stationId - The unique station ID, which is provided with StationListResult or StationDetailResultpublic CorrectionRequest setCorrectionValue(String correctionValue)
The type of the data is determined by the correction type:
- Float (#.##): WRONG_PRICE_E5, WRONG_PRICE_E10, WRONG_PRICE_DIESEL - Post Code (e.g. 12345): WRONG_PETROL_STATION_POSTCODE - Location Data (e.g. 53.0, 13.0): WRONG_PETROL_STATION_LOCATION - Any String: Everything else
correctionValue - The correction valuepublic final R execute()
throws RequesterException
Requester,
which will return the requested result objectexecute in interface Request<R extends Result>RequesterException - Checked Exceptions that might be thrown during request executionCopyright © 2017. All rights reserved.