Class VoiceRepository
- java.lang.Object
-
- io.github.signalwirecommunity.repository.VoiceRepository
-
- All Implemented Interfaces:
VoiceInterface
public class VoiceRepository extends java.lang.Object implements VoiceInterface
-
-
Constructor Summary
Constructors Constructor Description VoiceRepository(java.lang.String projectId, java.lang.String apiToken, java.lang.String spaceUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallResponse
calls()
Get all the voice calls in a particular projectCallResponse
calls(CallFilter filter)
Get all the calls using the below parametersCall
create(VoiceBuilder builder)
Create a call using the below and following parametersSuccessResponse
delete(java.lang.String sid)
Delete a call using the following parameterCall
get(java.lang.String sid)
Get information of a Call by using SIDCall
update(java.lang.String sid, VoiceBuilder callInfo)
Update the item of a call using the SID
-
-
-
Method Detail
-
calls
public CallResponse calls()
Get all the voice calls in a particular project- Specified by:
calls
in interfaceVoiceInterface
-
calls
public CallResponse calls(CallFilter filter)
Get all the calls using the below parameters- Specified by:
calls
in interfaceVoiceInterface
- Parameters:
filter
- Holds the parameter needed to query list of calls- Returns:
- CallResponse
-
create
public Call create(VoiceBuilder builder) throws SignalWireException
Create a call using the below and following parameters- Specified by:
create
in interfaceVoiceInterface
- Returns:
- Call
- Throws:
SignalWireException
-
get
public Call get(java.lang.String sid)
Get information of a Call by using SID- Specified by:
get
in interfaceVoiceInterface
- Parameters:
sid
- unique id of the call- Returns:
- Call
-
update
public Call update(java.lang.String sid, VoiceBuilder callInfo) throws SignalWireException
Update the item of a call using the SID- Specified by:
update
in interfaceVoiceInterface
- Parameters:
sid
- unique SID of the phone callcallInfo
- All call information from VoiceBuilder- Returns:
- Call
- Throws:
SignalWireException
-
delete
public SuccessResponse delete(java.lang.String sid)
Delete a call using the following parameter- Specified by:
delete
in interfaceVoiceInterface
- Parameters:
sid
- unique SID of the call- Returns:
- SuccessResponse
-
-