Enum ChatParticipant

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ChatParticipant>


    public enum ChatParticipant
    extends java.lang.Enum<ChatParticipant>
    A chat participant is someone who has participated in the chat either by joining the chat or sending a message.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      AGENT
      Staff member providing support service.
      SYSTEM
      Zendesk Chat system.
      TRIGGER
      Automation that performs certain actions in response to a specific events in the system.
      VISITOR
      The end-user contacting the business.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static ChatParticipant valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ChatParticipant[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • VISITOR

        public static final ChatParticipant VISITOR
        The end-user contacting the business.
      • AGENT

        public static final ChatParticipant AGENT
        Staff member providing support service.
      • TRIGGER

        public static final ChatParticipant TRIGGER
        Automation that performs certain actions in response to a specific events in the system.
    • Method Detail

      • values

        public static ChatParticipant[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ChatParticipant c : ChatParticipant.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ChatParticipant valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null