Class RCSBusinessMessaging.Phones.AgentEvents

  • Enclosing class:
    RCSBusinessMessaging.Phones

    public class RCSBusinessMessaging.Phones.AgentEvents
    extends java.lang.Object
    The "agentEvents" collection of methods.
    • Constructor Detail

      • AgentEvents

        public AgentEvents()
    • Method Detail

      • create

        public RCSBusinessMessaging.Phones.AgentEvents.Create create​(java.lang.String parent,
                                                                     AgentEvent content)
                                                              throws java.io.IOException
        Sends an event from the agent to a user. Agent events can be used to indicate that the agent has read a message from the user or that the agent is in the process of typing (which adds a human element to the RBM experience). If RBM can't reach the user, the RBM platform returns `404 NOT_FOUND`. Unlike agent messages, agent events cannot be revoked after sending. Create a request for the method "agentEvents.create". This request holds the parameters needed by the rcsbusinessmessaging server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        parent - "phones/{E.164}", where {E.164} is the user's phone number in E.164 format. For example, for a user with the US phone number +1-222-333-4444, the value would be phones/+12223334444, and the resulting endpoint would be https://rcsbusinessmessaging.googleapis.com/v1/phones/+12223334444/agentEvents.
        content - the AgentEvent
        Returns:
        the request
        Throws:
        java.io.IOException