public class MessageType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MessageType |
INVALID |
static MessageType |
INVALIDVERSION |
static MessageType |
LOGIN |
static MessageType |
LOGINRESPONSE |
static MessageType |
LOGOUT |
static MessageType |
PING |
Constructor and Description |
---|
MessageType(java.lang.String name,
byte messageId) |
Modifier and Type | Method and Description |
---|---|
static MessageType |
get(byte id) |
static MessageType |
get(java.lang.String name) |
byte |
getId() |
java.lang.String |
getName() |
public static final MessageType INVALID
public static final MessageType INVALIDVERSION
public static final MessageType LOGIN
public static final MessageType LOGINRESPONSE
public static final MessageType LOGOUT
public static final MessageType PING
public static MessageType get(byte id)
public static MessageType get(java.lang.String name)
public byte getId()
public java.lang.String getName()