public class Recording extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
Recording(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Recording(BandwidthClient client,
String parentUri,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
static Recording |
get(BandwidthClient client,
String id)
Recording factory method.
|
static Recording |
get(String id)
Recording factory method.
|
String |
getCall() |
Date |
getEndTime() |
String |
getMedia() |
Date |
getStartTime() |
String |
getState() |
protected String |
getUri() |
static ResourceList<Recording> |
list()
Factory method for Recording list, returns list of Recording objects with default page, size
|
static ResourceList<Recording> |
list(BandwidthClient client,
int page,
int size)
Factory method for Recording list, returns list of Recording objects with page, size preference
|
static ResourceList<Recording> |
list(int page,
int size)
Factory method for Recording list, returns list of Recording objects with page, size preference
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Recording(BandwidthClient client, String parentUri, org.json.simple.JSONObject jsonObject)
public Recording(BandwidthClient client, org.json.simple.JSONObject jsonObject)
public static ResourceList<Recording> list() throws IOException
IOException
- unexpected errorpublic static ResourceList<Recording> list(int page, int size) throws IOException
page
- the pagesize
- the page sizeIOException
- unexpected errorpublic static ResourceList<Recording> list(BandwidthClient client, int page, int size) throws IOException
client
- the clientpage
- the pagesize
- the page sizeIOException
- unexpected errorpublic static Recording get(String id) throws Exception
id
- the recording idIOException
- unexpected errorException
public static Recording get(BandwidthClient client, String id) throws Exception
client
- the clientid
- the recording idIOException
- unexpected errorException
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected String getUri()
public String getMedia()
public String getCall()
public String getState()
public Date getStartTime()
public Date getEndTime()
Copyright © 2015. All Rights Reserved.