public class Department
extends java.lang.Object
LivechatDepartmentsPath
.
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 department broadcast via com.zopim.android.sdk.data.DataSource#addDepartmentsObserver(java.util.Observer)
using DepartmentsObserver
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.
Modifier and Type | Class and Description |
---|---|
static class |
Department.Status
Status of the department
Department.Status.ONLINE
Department.Status.OFFLINE
Department.Status.UNKNOWN
|
Constructor and Description |
---|
Department() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets name of the department
|
Department.Status |
getStatus()
Gets availability status of the department
|
java.lang.String |
toString() |
@Nullable public java.lang.String getName()
@Nullable public Department.Status getStatus()
public java.lang.String toString()
toString
in class java.lang.Object