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 com.zopim.android.sdk.data.DataSource#addAgentsObserver(java.util.Observer) 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

      Constructors 
      Constructor and Description
      Agent() 
    • 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
        Returns:
        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

        Returns:
        agent's name
      • getAvatarUri

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

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