sharp-chat/SharpChat/Packet/UserChannelLeavePacket.cs

16 lines
431 B
C#

using System;
namespace SharpChat.Packet {
public class UserChannelLeavePacket : ServerPacket {
public ChatUser User { get; private set; }
public UserChannelLeavePacket(ChatUser user) {
User = user ?? throw new ArgumentNullException(nameof(user));
}
public override string Pack() {
return string.Format("5\t1\t{0}\t{1}", User.UserId, SequenceId);
}
}
}