2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
|
|
|
|
import com.eu.habbo.messages.ServerMessage;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public enum ModToolChatRecordDataContext {
|
2018-07-06 15:30:00 +02:00
|
|
|
ROOM_NAME("roomName", 2),
|
|
|
|
ROOM_ID("roomId", 1),
|
|
|
|
GROUP_ID("groupId", 1),
|
|
|
|
THREAD_ID("threadId", 1),
|
2019-07-21 19:16:27 +02:00
|
|
|
MESSAGE_ID("messageId", 1),
|
|
|
|
PHOTO_ID("extraDataId", 2);
|
2018-07-06 15:30:00 +02:00
|
|
|
|
|
|
|
public final String key;
|
|
|
|
public final int type;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
ModToolChatRecordDataContext(String key, int type) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.key = key;
|
|
|
|
this.type = type;
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public void append(final ServerMessage message) {
|
2018-07-06 15:30:00 +02:00
|
|
|
message.appendString(this.key);
|
|
|
|
message.appendByte(this.type);
|
|
|
|
}
|
|
|
|
}
|