sharp-chat/SharpChat/Packet/ContextClearPacket.cs

21 lines
509 B
C#

namespace SharpChat.Packet {
public enum ContextClearMode {
Messages = 0,
Users = 1,
Channels = 2,
MessagesUsers = 3,
MessagesUsersChannels = 4,
}
public class ContextClearPacket : ServerPacket {
private readonly ContextClearMode Mode;
public ContextClearPacket(ContextClearMode mode) {
Mode = mode;
}
public override string Pack() {
return string.Format("8\t{0}", (int)Mode);
}
}
}