Message type id mapping in preparation for storing chat messages in database

This commit is contained in:
Keir Nellyer 2016-06-19 22:28:56 +01:00
parent 71a4b601e5
commit ec2ec878e8

View File

@ -5,6 +5,18 @@ package mineplex.core.chatsnap;
*/
public enum MessageType
{
CHAT,
PM
CHAT(0),
PM(1);
private int _id;
MessageType(int id)
{
_id = id;
}
public int getId()
{
return _id;
}
}