public abstract class ResourceBase extends ModelBase
Modifier and Type | Field and Description |
---|---|
protected BandwidthClient |
client |
protected String |
id |
protected Map<String,Object> |
properties |
dateFormat
Modifier | Constructor and Description |
---|---|
protected |
ResourceBase(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
protected |
ResourceBase(org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
BandwidthClient |
getClient() |
String |
getId() |
Map<String,Object> |
getProperties() |
void |
setId(String id) |
protected abstract void |
setUp(org.json.simple.JSONObject jsonObject) |
protected static org.json.simple.JSONArray |
toJSONArray(RestResponse response) |
protected static org.json.simple.JSONObject |
toJSONObject(RestResponse response) |
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
protected String id
protected final BandwidthClient client
protected ResourceBase(org.json.simple.JSONObject jsonObject)
protected ResourceBase(BandwidthClient client, org.json.simple.JSONObject jsonObject)
protected abstract void setUp(org.json.simple.JSONObject jsonObject)
protected static org.json.simple.JSONObject toJSONObject(RestResponse response) throws org.json.simple.parser.ParseException
org.json.simple.parser.ParseException
protected static org.json.simple.JSONArray toJSONArray(RestResponse response) throws org.json.simple.parser.ParseException
org.json.simple.parser.ParseException
public void setId(String id)
public BandwidthClient getClient()
Copyright © 2014. All Rights Reserved.