Message type id mapping in preparation for storing chat messages in database
This commit is contained in:
parent
71a4b601e5
commit
ec2ec878e8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user