sharp-chat/SharpChat/Packet/UserChannelForceJoinPacket.cs

15 lines
444 B
C#

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