21 lines
531 B
C#
21 lines
531 B
C#
namespace SharpChat.PacketsS2C {
|
|
public class ContextClearS2CPacket : SockChatS2CPacket {
|
|
public enum ClearMode {
|
|
Messages = 0,
|
|
Users = 1,
|
|
Channels = 2,
|
|
MessagesUsers = 3,
|
|
MessagesUsersChannels = 4,
|
|
}
|
|
|
|
private readonly ClearMode Mode;
|
|
|
|
public ContextClearS2CPacket(ClearMode mode) {
|
|
Mode = mode;
|
|
}
|
|
|
|
public override string Pack() {
|
|
return string.Format("8\t{0}", (int)Mode);
|
|
}
|
|
}
|
|
}
|