PersonType
com.boldchat.visitor.api
Enum PersonType
- java.lang.Object
-
- java.lang.Enum<PersonType>
-
- com.boldchat.visitor.api.PersonType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PersonType>
public enum PersonType extends java.lang.Enum<PersonType>
Defines the different types of people that may type or send messages
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description Operator
The operator handling the chatSystem
An automated message of the operational systemVisitor
The visitor that is chatting (user of this api)
-
Method Summary
Methods Modifier and Type Method and Description static PersonType
getPersonType(java.lang.String personType)
static PersonType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PersonType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Operator
public static final PersonType Operator
The operator handling the chat
-
Visitor
public static final PersonType Visitor
The visitor that is chatting (user of this api)
-
System
public static final PersonType System
An automated message of the operational system
-
-
Method Detail
-
values
public static PersonType[] 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 (PersonType c : PersonType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PersonType 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
-
getPersonType
public static PersonType getPersonType(java.lang.String personType)
-
-