Class Agent

  • public class Agent
    extends java.lang.Object
    This is a model class for Agent that will be created by LivechatAgentsPath.

    It is used to tell available departments for in a chat session. Configuration of available departments can be done on the agent's dashboard.

    You can subscribe to agent broadcast via using AgentsObserver

    This class is a model that will be serialised to JSON and deserialised from JSON to this model. As such it does not follow the m naming prefix for fields.

    See Also:
    Agent Dashboard
    • Constructor Summary

      Constructor and Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getAvatarUri()
      Gets agent avatar uri resource
      java.lang.String getDisplayName()
      Gets display name of the agent as in agent dashboard
      java.lang.Boolean isTyping()
      Indicates whether agent is currently typing
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • Agent

        public Agent()
    • Method Detail

      • isTyping

        public java.lang.Boolean isTyping()
        Indicates whether agent is currently typing
        true if typing, false if not typing, null if uninitialized
      • getDisplayName

        public java.lang.String getDisplayName()
        Gets display name of the agent as in agent dashboard

        Agent name is configurable in Agent Dashboard Profile

        agent's name
      • getAvatarUri

        public java.lang.String getAvatarUri()
        Gets agent avatar uri resource
        uri of the avatar resource
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object