Enum OperationEnum
java.lang.Object
java.lang.Enum<OperationEnum>
tech.ordinaryroad.live.chat.client.codec.bilibili.constant.OperationEnum
- All Implemented Interfaces:
Serializable,Comparable<OperationEnum>,java.lang.constant.Constable
- Author:
- mjz
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription认证包回复心跳包心跳包回复(人气值)普通包(命令)认证包 -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationEnumgetByCode(int code) static OperationEnumReturns the enum constant of this type with the specified name.static OperationEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEARTBEAT
心跳包 -
HEARTBEAT_REPLY
心跳包回复(人气值) -
MESSAGE
普通包(命令) -
USER_AUTHENTICATION
认证包 -
CONNECT_SUCCESS
认证包回复 -
HANDSHAKE
-
HANDSHAKE_REPLY
-
SEND_MSG
-
DISCONNECT_REPLY
-
RAW
-
PROTO_READY
-
PROTO_FINISH
-
CHANGE_ROOM
-
CHANGE_ROOM_REPLY
-
REGISTER
-
REGISTER_REPLY
-
UNREGISTER
-
UNREGISTER_REPLY
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getByCode
-