Package zendesk.chat.client
Enum ChatParticipant
- java.lang.Object
-
- java.lang.Enum<ChatParticipant>
-
- zendesk.chat.client.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.
-
-
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.
-
-
-
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.
-
SYSTEM
public static final ChatParticipant SYSTEM
Zendesk Chat 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 namejava.lang.NullPointerException
- if the argument is null
-
-