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,
java.util.Map<java.lang.String,java.lang.Object> params)
Convenience factory method to create a Bridge object from a params maps
|
static Bridge |
create(BandwidthClient client,
java.lang.String callId1,
java.lang.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(java.lang.String id)
Convenience factory method for Bridge, returns Bridge object from an id
|
static Bridge |
create(java.lang.String callId1,
java.lang.String callId2)
Convenience factory method to create a Bridge object from two call ids
|
static Bridge |
get(BandwidthClient client,
java.lang.String id)
Convenience method to return a bridge object given a client and an id
|
static Bridge |
get(java.lang.String id)
Convenience method to get information about a specific bridge.
|
java.util.Date |
getActivatedTime() |
java.util.List<Call> |
getBridgeCalls()
Gets list of calls that are on the bridge
|
java.lang.String[] |
getCallIds() |
java.lang.String |
getCalls() |
java.util.Date |
getCompletedTime() |
java.util.Date |
getCreatedTime() |
java.lang.String |
getState() |
protected java.lang.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(java.lang.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.
|
java.lang.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(java.lang.String id) throws java.lang.Exception
id
- bridge idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge get(BandwidthClient client, java.lang.String id) throws java.lang.Exception
client
- the clientid
- the call idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge create(java.lang.String id) throws java.lang.Exception
id
- the call idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge create(Call call1, Call call2) throws java.lang.Exception
call1
- the call idcall2
- the call idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge create(java.lang.String callId1, java.lang.String callId2) throws java.lang.Exception
callId1
- the call idcallId2
- the call idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge create(BandwidthClient client, java.lang.String callId1, java.lang.String callId2) throws java.lang.Exception
client
- the clientcallId1
- the call idcallId2
- the call idjava.io.IOException
- unexpected error.java.lang.Exception
public static Bridge create(BandwidthClient client, java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
client
- the clientparams
- the paramsjava.io.IOException
- unexpected error.java.lang.Exception
public static ResourceList<Bridge> list() throws java.io.IOException
java.io.IOException
- unexpected error.public static ResourceList<Bridge> list(int page, int size) throws java.io.IOException
page
- the pagesize
- the page sizejava.io.IOException
- unexpected error.public static ResourceList<Bridge> list(BandwidthClient client, int page, int size) throws java.io.IOException
client
- the clientpage
- the pagesize
- the page sizejava.io.IOException
- unexpected error.protected void setUp(org.json.simple.JSONObject jsonObject)
setUp
in class ResourceBase
protected java.lang.String getUri()
public java.util.List<Call> getBridgeCalls() throws java.lang.Exception
java.io.IOException
- unexpected error.java.lang.Exception
public void setCallIds(java.lang.String[] callIds)
callIds
- new valuepublic void setBridgeAudio(boolean bridgeAudio)
bridgeAudio
- new valuepublic void commit() throws java.io.IOException, AppPlatformException
java.io.IOException
- unexpected error.AppPlatformException
- unexpected exception.public java.lang.String getState()
public java.lang.String[] getCallIds()
public java.lang.String getCalls()
public boolean isBridgeAudio()
public java.util.Date getCompletedTime()
public java.util.Date getCreatedTime()
public java.util.Date getActivatedTime()
public Bridge.NewBridgeAudioBuilder newBridgeAudioBuilder()
bridge.newBridgeAudioBuilder().sentence("Hello").create();
public void stopAudioFilePlaying() throws java.io.IOException, AppPlatformException
java.io.IOException
- unexpected error.AppPlatformException
- unexpected exception.public void stopSentence() throws java.io.IOException, AppPlatformException
java.io.IOException
- unexpected error.AppPlatformException
- unexpected exception.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2019. All Rights Reserved.