Chat.getDepartments()
This API allows you to programmatically get a list of all the departments that have been associated with the brand in which Mobilisten is configured.
The API provides an array of instances of the SIQDepartment class to represent the list of departments asynchronously.
Properties of SIQDepartment class:
Property | Data type | Description |
id | String | The ID of the department |
name | String | Name of the department |
available | boolean | Availability of the department based on operators' availability and business hours. |
Error Handling:
Code | Description |
605 | Mobilisten disabled |
Example:
CopiedZohoSalesIQ.Chat.getDepartments(new DepartmentListener() {
@Override
public void onSuccess(ArrayList<SIQDepartment> departments) {
//your code
}
@Override
public void onFailure(int code, String message) {
//your code
}
});