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:

PropertyData typeDescription
idStringThe ID of the department
nameStringName of the department
availablebooleanAvailability of the department based on operators' availability and business hours.

Error Handling:

CodeDescription
605Mobilisten 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
    }
});