Package com.zopim.android.sdk.model
Class Agent
- java.lang.Object
-
- com.zopim.android.sdk.model.Agent
-
public class Agent extends java.lang.Object
This is a model class for Agent that will be created byLivechatAgentsPath
.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)
usingAgentsObserver
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 resourcejava.lang.String
getDisplayName()
Gets display name of the agent as in agent dashboardjava.lang.Boolean
isTyping()
Indicates whether agent is currently typingjava.lang.String
toString()
-
-
-
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 dashboardAgent 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 classjava.lang.Object
-
-