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.util.Map<java.lang.String,​java.lang.Object> callInfo)
      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.util.Map<java.lang.String,​java.lang.Object> callInfo)
      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.util.Map<java.lang.String,​java.lang.Object> callInfo)
        Create a call using the belowing and following parameters
        Specified by:
        create in interface VoiceInterface
        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.util.Map<java.lang.String,​java.lang.Object> callInfo)
        Update the item of a call using the SID
        Specified by:
        update in interface VoiceInterface
        Parameters:
        sid - unique SID of the phone call
        callInfo - All call information from VoiceBuilder
        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