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