- java.lang.Object
-
- java.lang.Enum<WebSocketEventType>
-
- net.bis5.mattermost.model.WebSocketEventType
-
- All Implemented Interfaces:
Serializable,Comparable<WebSocketEventType>,HasCode<WebSocketEventType>
public enum WebSocketEventType extends Enum<WebSocketEventType> implements HasCode<WebSocketEventType>
Type of Websocket event.- Author:
- Takayuki Maruyama
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebSocketEventType.WebSocketEventTypeDeserializer
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()static WebSocketEventTypeof(String code)Get a WebSocketEventType constant for providedcode.static WebSocketEventTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WebSocketEventType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Typing
public static final WebSocketEventType Typing
-
Posted
public static final WebSocketEventType Posted
-
PostEdited
public static final WebSocketEventType PostEdited
-
PostDeleted
public static final WebSocketEventType PostDeleted
-
ChannelDeleted
public static final WebSocketEventType ChannelDeleted
-
ChannelCreated
public static final WebSocketEventType ChannelCreated
-
DirectAdded
public static final WebSocketEventType DirectAdded
-
GroupAdded
public static final WebSocketEventType GroupAdded
-
NewUser
public static final WebSocketEventType NewUser
-
AddedToTeam
public static final WebSocketEventType AddedToTeam
-
LeaveTeam
public static final WebSocketEventType LeaveTeam
-
UpdateTeam
public static final WebSocketEventType UpdateTeam
-
UserAdded
public static final WebSocketEventType UserAdded
-
UserUpdated
public static final WebSocketEventType UserUpdated
-
UserRemoved
public static final WebSocketEventType UserRemoved
-
PreferenceChanged
public static final WebSocketEventType PreferenceChanged
-
PreferencesChanged
public static final WebSocketEventType PreferencesChanged
-
PreferencesDeleted
public static final WebSocketEventType PreferencesDeleted
-
EphemeralMessage
public static final WebSocketEventType EphemeralMessage
-
StatusChange
public static final WebSocketEventType StatusChange
-
Hello
public static final WebSocketEventType Hello
-
Webrtc
public static final WebSocketEventType Webrtc
-
ReactionAdded
public static final WebSocketEventType ReactionAdded
-
ReactionRemoved
public static final WebSocketEventType ReactionRemoved
-
Response
public static final WebSocketEventType Response
-
-
Method Detail
-
values
public static WebSocketEventType[] 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 (WebSocketEventType c : WebSocketEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebSocketEventType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public String getCode()
- Specified by:
getCodein interfaceHasCode<WebSocketEventType>
-
of
public static WebSocketEventType of(String code)
Get a WebSocketEventType constant for providedcode.
-
-