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(java.lang.String endTime, java.lang.String endTimeBefore, java.lang.String endTimeAfter, java.lang.String from, java.lang.String parentCallSid, java.lang.String startTime, java.lang.String startTimeBefore, java.lang.String startTimeAfter, java.lang.String status, java.lang.String to)
Get all the calls using the below parametersCall
create(java.lang.String from, java.lang.String to, java.lang.String url, java.lang.Boolean record, java.lang.String statusCallback)
Create a call using the belowing 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, java.lang.String url, java.lang.String fallbackUrl, java.lang.String status, java.lang.String statusCallBack)
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(java.lang.String endTime, java.lang.String endTimeBefore, java.lang.String endTimeAfter, java.lang.String from, java.lang.String parentCallSid, java.lang.String startTime, java.lang.String startTimeBefore, java.lang.String startTimeAfter, java.lang.String status, java.lang.String to)
Get all the calls using the below parameters- Specified by:
calls
in interfaceVoiceInterface
- Parameters:
endTime
- end timeendTimeBefore
- end time beforeendTimeAfter
- end time afterfrom
- phone number sending the callparentCallSid
- parent call SidstartTime
- start timestartTimeBefore
- start time beforestartTimeAfter
- start time afterstatus
- status of the messageto
- destination phone call- Returns:
- CallResponse
-
create
public Call create(java.lang.String from, java.lang.String to, java.lang.String url, java.lang.Boolean record, java.lang.String statusCallback)
Create a call using the belowing and following parameters- Specified by:
create
in interfaceVoiceInterface
- Parameters:
from
- phone number sending the callto
- destination phone callurl
- url to bin of the phone callrecord
- ask to record the phone callstatusCallback
- link to status of the phone call- Returns:
- Call
-
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, java.lang.String url, java.lang.String fallbackUrl, java.lang.String status, java.lang.String statusCallBack)
Update the item of a call using the SID- Specified by:
update
in interfaceVoiceInterface
- Parameters:
sid
- unique SID of the phone callurl
- url of the call xml binfallbackUrl
- fallback url if the call failedstatus
- status of the callstatusCallBack
- link to get information on the status of your call- Returns:
- Call
-
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
-
-