public abstract class SmsResultBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HTTPResponse |
response |
| Constructor and Description |
|---|
SmsResultBase() |
| Modifier and Type | Method and Description |
|---|---|
HTTPResponse |
getResponse()
Get raw response
|
abstract SmsResultBase |
parseFromHTTPResponse(HTTPResponse response)
Parse result from HTTPResponse
|
org.json.JSONObject |
parseToJson(HTTPResponse response)
Parse HTTP response to JSONObject
|
String |
toString() |
protected HTTPResponse response
public abstract SmsResultBase parseFromHTTPResponse(HTTPResponse response) throws org.json.JSONException
response - HTTP response from api returnorg.json.JSONException - json parse exceptionpublic org.json.JSONObject parseToJson(HTTPResponse response) throws org.json.JSONException
response - HTTP responseorg.json.JSONException - json parse exceptionpublic HTTPResponse getResponse()
Copyright © 2018. All rights reserved.