Class VoiceRepository

    • 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 project
      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
      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
      SuccessResponse delete​(java.lang.String sid)
      Delete a call using the following parameter
      Call get​(java.lang.String sid)
      Get information of a Call by using SID
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VoiceRepository

        public VoiceRepository​(java.lang.String projectId,
                               java.lang.String apiToken,
                               java.lang.String spaceUrl)
    • Method Detail

      • 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 interface VoiceInterface
        Parameters:
        endTime - end time
        endTimeBefore - end time before
        endTimeAfter - end time after
        from - phone number sending the call
        parentCallSid - parent call Sid
        startTime - start time
        startTimeBefore - start time before
        startTimeAfter - start time after
        status - status of the message
        to - 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 interface VoiceInterface
        Parameters:
        from - phone number sending the call
        to - destination phone call
        url - url to bin of the phone call
        record - ask to record the phone call
        statusCallback - 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 interface VoiceInterface
        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 interface VoiceInterface
        Parameters:
        sid - unique SID of the phone call
        url - url of the call xml bin
        fallbackUrl - fallback url if the call failed
        status - status of the call
        statusCallBack - 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 interface VoiceInterface
        Parameters:
        sid - unique SID of the call
        Returns:
        SuccessResponse