sharp-chat/SharpChat/Packet/ChannelCreatePacket.cs
2023-02-07 16:01:56 +01:00

24 lines
602 B
C#

using System.Collections.Generic;
using System.Text;
namespace SharpChat.Packet {
public class ChannelCreatePacket : ServerPacket {
public ChatChannel Channel { get; private set; }
public ChannelCreatePacket(ChatChannel channel) {
Channel = channel;
}
public override IEnumerable<string> Pack() {
StringBuilder sb = new();
sb.Append('4');
sb.Append('\t');
sb.Append('0');
sb.Append('\t');
sb.Append(Channel.Pack());
yield return sb.ToString();
}
}
}