Package com.zopim.android.sdk.model
Class Department
- java.lang.Object
-
- com.zopim.android.sdk.model.Department
-
public class Department extends java.lang.Object
This is a model class for Department that will be created byLivechatDepartmentsPath
.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)
usingDepartmentsObserver
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
Department.Status
Status of the departmentDepartment.Status.ONLINE
Department.Status.OFFLINE
Department.Status.UNKNOWN
-
Constructor Summary
Constructors Constructor and Description Department()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getName()
Gets name of the departmentDepartment.Status
getStatus()
Gets availability status of the departmentjava.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets name of the department- Returns:
- department name
-
getStatus
public Department.Status getStatus()
Gets availability status of the department- Returns:
- department status
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-