public abstract class BaseModelObject extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BandwidthRestClient |
client |
protected static SimpleDateFormat |
dateFormat |
protected String |
parentUri |
protected Map<String,Object> |
properties |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseModelObject(BandwidthRestClient client,
String parentUri,
org.json.simple.JSONObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
protected Object |
getProperty(String key) |
protected Boolean |
getPropertyAsBoolean(String key) |
protected Date |
getPropertyAsDate(String key) |
protected Double |
getPropertyAsDouble(String key) |
protected Long |
getPropertyAsLong(String key) |
protected String |
getPropertyAsString(String key) |
protected String[] |
getPropertyAsStringArray(String key) |
protected String |
getUri() |
protected void |
putProperty(String key,
Object value) |
protected Map<String,Object> |
toMap() |
protected void |
updateProperties(org.json.simple.JSONObject jsonObject) |
protected static final SimpleDateFormat dateFormat
protected final BandwidthRestClient client
protected final String parentUri
protected BaseModelObject(BandwidthRestClient client, String parentUri, org.json.simple.JSONObject jsonObject)
Copyright © 2014. All rights reserved.