sharp-chat/SharpChat/Packet/ChannelDeletePacket.cs

15 lines
430 B
C#

using System;
namespace SharpChat.Packet {
public class ChannelDeletePacket : ServerPacket {
public ChatChannel Channel { get; private set; }
public ChannelDeletePacket(ChatChannel channel) {
Channel = channel ?? throw new ArgumentNullException(nameof(channel));
}
public override string Pack() {
return string.Format("4\t2\t{0}", Channel.Name);
}
}
}