Class VoiceGrant

    • Constructor Detail

      • VoiceGrant

        public VoiceGrant()
    • Method Detail

      • setOutgoingApplicationSid

        public VoiceGrant setOutgoingApplicationSid​(String outgoingApplicationSid)
      • setOutgoingApplication

        public VoiceGrant setOutgoingApplication​(String outgoingApplicationSid,
                                                 Map<String,​Object> outgoingApplicationParams)
        Set the outgoing application.
        Parameters:
        outgoingApplicationSid - outgoing application sid
        outgoingApplicationParams - outgoing application parameters
        Returns:
        voice grant
      • setPushCredentialSid

        public VoiceGrant setPushCredentialSid​(String pushCredentialSid)
      • getGrantKey

        public String getGrantKey()
        Description copied from interface: Grant
        The key for the grant.
        Specified by:
        getGrantKey in interface Grant
        Returns:
        The key for the grant.
      • getPayload

        public Object getPayload()
        Description copied from interface: Grant
        The payload for this grant.

        The payload allows us to decouple the user API from how the grant is structured.

        Specified by:
        getPayload in interface Grant
        Returns:
        The payload for this grant.