Class Department



  • public class Department
    extends java.lang.Object
    This is a model class for Department that will be created by 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 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.

    See Also:
    Agent Dashboard
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Department.Status
      Status of the department
    • 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 department
      Department.Status getStatus()
      Gets availability status of the department
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Department

        public Department()
    • 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 class java.lang.Object