23 lines
549 B
C#
23 lines
549 B
C#
using System.Text;
|
|
|
|
namespace SharpChat.Packet {
|
|
public class ChannelCreatePacket : ServerPacket {
|
|
public ChatChannel Channel { get; private set; }
|
|
|
|
public ChannelCreatePacket(ChatChannel channel) {
|
|
Channel = channel;
|
|
}
|
|
|
|
public override string Pack() {
|
|
StringBuilder sb = new();
|
|
|
|
sb.Append('4');
|
|
sb.Append('\t');
|
|
sb.Append('0');
|
|
sb.Append('\t');
|
|
sb.Append(Channel.Pack());
|
|
|
|
return sb.ToString();
|
|
}
|
|
}
|
|
}
|