public class Bridge extends ResourceBase
Modifier and Type | Class and Description |
---|---|
class |
Bridge.NewBridgeAudioBuilder |
client, id, properties
dateFormat
Constructor and Description |
---|
Bridge(BandwidthClient client,
org.json.simple.JSONObject jsonObject) |
Modifier and Type | Method and Description |
---|---|
void |
commit()
Makes changes ob the bridge.
|
static Bridge |
create(BandwidthClient client,
Map<String,Object> params)
Convenience factory method to create a Bridge object from a params maps
|
static Bridge |
create(BandwidthClient client,
String callId1,
String callId2)
Convenience method to create a Bridge object from two call ids
|
static Bridge |
create(Call call1,
Call call2)
Convenience factory method to create a Bridge object from two Call objects
|
static Bridge |
create(String id)
Convenience factory method for Bridge, returns Bridge object from an id
|
static Bridge |
create(String callId1,
String callId2)
Convenience factory method to create a Bridge object from two call ids
|
static Bridge |
get(BandwidthClient client,
String id)
Convenience method to return a bridge object given a client and an id
|
static Bridge |
get(String id)
Convenience method to get information about a specific bridge.
|
Date |
getActivatedTime() |
List<Call> |
getBridgeCalls()
Gets list of calls that are on the bridge
|
String[] |
getCallIds() |
String |
getCalls() |
Date |
getCompletedTime() |
Date |
getCreatedTime() |
String |
getState() |
protected String |
getUri() |
boolean |
isBridgeAudio() |
static ResourceList<Bridge> |
list()
Factory method for Bridge list, returns list of Bridge objects with default page setting
|
static ResourceList<Bridge> |
list(BandwidthClient client,
int page,
int size)
Factory method for Bridge list, returns list of Bridge objects with page, size preference
|
static ResourceList<Bridge> |
list(int page,
int size)
Factory method for Bridge list, returns list of Bridge objects with page, size preference
|
Bridge.NewBridgeAudioBuilder |
newBridgeAudioBuilder()
Creates new builder for playing an audio file or speaking a sentence in a bridge.
|
void |
setBridgeAudio(boolean bridgeAudio)
Sets bridge audio
|
void |
setCallIds(String[] callIds)
Sets call ids
|
protected void |
setUp(org.json.simple.JSONObject jsonObject) |
void |
stopAudioFilePlaying()
Stop an audio file playing.
|
void |
stopSentence()
Stop an audio sentence.
|
String |
toString() |
getClient, getId, getProperties, setId, toJSONArray, toJSONObject
getProperty, getPropertyAsBoolean, getPropertyAsDate, getPropertyAsDouble, getPropertyAsLong, getPropertyAsString, getPropertyAsStringArray, putProperty, toMap, updateProperties
public Bridge(BandwidthClient client, org.json.simple.JSONObject jsonObject)
public static Bridge get(String id) throws Exception
id
- bridge idIOException
Exception
public static Bridge get(BandwidthClient client, String id) throws Exception
client
- id
- IOException
Exception
public static Bridge create(String id) throws Exception
callId
- IOException
Exception
public static Bridge create(Call call1, Call call2) throws Exception
call1
- call2
- IOException
Exception
public static Bridge create(String callId1, String callId2) throws Exception
callId1
- callId2
- IOException
Exception
public static Bridge create(BandwidthClient client, String callId1, String callId2) throws Exception
callId1
- callId2
- IOException
Exception
public static Bridge create(BandwidthClient client, Map<String,Object> params) throws Exception
callId1
- callId2
- IOException
Exception
public static ResourceList<Bridge> list() throws IOException
IOException
public static ResourceList<Bridge> list(int page, int size) throws IOException
page
- size
- IOException
public static ResourceList<Bridge> list(BandwidthClient client, int page, int size) throws IOException
page
- size
- IOException
protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected String getUri()
public List<Call> getBridgeCalls() throws Exception
IOException
Exception
public void setCallIds(String[] callIds)
callIds
- new valuepublic void setBridgeAudio(boolean bridgeAudio)
bridgeAudio
- new valuepublic void commit() throws IOException
IOException
public String getState()
public String[] getCallIds()
public String getCalls()
public boolean isBridgeAudio()
public Date getCompletedTime()
public Date getCreatedTime()
public Date getActivatedTime()
public Bridge.NewBridgeAudioBuilder newBridgeAudioBuilder()
bridge.newBridgeAudioBuilder().sentence("Hello").create();
public void stopAudioFilePlaying() throws IOException
IOException
public void stopSentence() throws IOException
IOException
Copyright © 2014. All Rights Reserved.