public final class CorrectionResult extends Object
CorrectionRequest. In case of success, isOk() will return true.
Else, the error information are supplied as described in BaseResult
Result.ResponseStatus| Constructor and Description |
|---|
CorrectionResult() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getData()
Returns the original data supplier for gas prices
Won't be filled for requests by
CorrectionRequest |
Optional<String> |
getLicense()
Will return the APIs license information.
|
Optional<String> |
getMessage()
In case of an error, will return the error message
|
Optional<Result.ResponseStatus> |
getStatus()
Returns whether the request was successful
Won't be filled for requests by
CorrectionRequest |
Boolean |
isOk()
Returns whether the request was successful
|
public Optional<Result.ResponseStatus> getStatus()
Won't be filled for requests by CorrectionRequest
public Optional<String> getMessage()
getMessage in interface Resultpublic Optional<String> getLicense()
Won't be filled for requests by CorrectionRequest
getLicense in interface Resultpublic Optional<String> getData()
Won't be filled for requests by CorrectionRequest
Copyright © 2017. All rights reserved.