public class Recording extends ResourceBase
client, id, properties
dateFormat
Constructor and Description |
---|
Recording(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Recording(BandwidthClient client,
java.lang.String parentUri,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
static Recording |
get(BandwidthClient client,
java.lang.String id)
Recording factory method.
|
static Recording |
get(java.lang.String id)
Recording factory method.
|
java.lang.String |
getCall() |
java.util.Date |
getEndTime() |
java.lang.String |
getMedia() |
java.util.Date |
getStartTime() |
java.lang.String |
getState() |
protected java.lang.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) |
java.lang.String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Recording(BandwidthClient client, java.lang.String parentUri, org.json.simple.JSONObject jsonObject)
public Recording(BandwidthClient client, org.json.simple.JSONObject jsonObject)
public static ResourceList<Recording> list() throws java.io.IOException
java.io.IOException
- unexpected errorpublic static ResourceList<Recording> list(int page, int size) throws java.io.IOException
page
- the pagesize
- the page sizejava.io.IOException
- unexpected errorpublic static ResourceList<Recording> list(BandwidthClient client, int page, int size) throws java.io.IOException
client
- the clientpage
- the pagesize
- the page sizejava.io.IOException
- unexpected errorpublic static Recording get(java.lang.String id) throws java.lang.Exception
id
- the recording idjava.io.IOException
- unexpected errorjava.lang.Exception
public static Recording get(BandwidthClient client, java.lang.String id) throws java.lang.Exception
client
- the clientid
- the recording idjava.io.IOException
- unexpected errorjava.lang.Exception
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected java.lang.String getUri()
public java.lang.String getMedia()
public java.lang.String getCall()
public java.lang.String getState()
public java.util.Date getStartTime()
public java.util.Date getEndTime()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019. All Rights Reserved.