| java.lang.Object | |
| ↳ | com.linecorp.linesdk.LineApiResponse<R> |
Represents a response from the Social API.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LineApiError |
getErrorData()
Gets information about an API error occurred.
| ||||||||||
| LineApiResponseCode |
getResponseCode()
Gets the response code that is returned.
| ||||||||||
| R |
getResponseData()
Gets data that is associated with the response if it exists.
| ||||||||||
| boolean |
isNetworkError()
Checks if the API call fails with a network error.
| ||||||||||
| boolean |
isServerError()
Checks if the API call fails with a server error.
| ||||||||||
| boolean |
isSuccess()
Checks if the API call is successful.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets information about an API error occurred. This method should only be called if an API call has failed.
LineApiError object that contains information about the error. If no
error occurs, the LineApiError object will not contain any useful information.
Gets the response code that is returned.
LineApiResponseCode object containing the HTTP status code which
indicates if the API call is successful.
Gets data that is associated with the response if it exists. If no data is associated
with the response, it throws NoSuchElementException. You must check if the response
succeeded by using the isSuccess() method before calling this method.
LineApiResponse class.| NoSuchElementException | if the response data is null.
|
|---|
Checks if the API call fails with a network error.
Checks if the API call fails with a server error.
Checks if the API call is successful.