20 lines
509 B
C#
20 lines
509 B
C#
namespace SharpChat.SockChat.PacketsS2C {
|
|
public class UserChannelLeaveS2CPacket : ISockChatS2CPacket {
|
|
private readonly long MessageId;
|
|
private readonly long UserId;
|
|
|
|
public UserChannelLeaveS2CPacket(long userId) {
|
|
MessageId = SharpId.Next();
|
|
UserId = userId;
|
|
}
|
|
|
|
public string Pack() {
|
|
return string.Format(
|
|
"5\t1\t{0}\t{1}",
|
|
UserId,
|
|
MessageId
|
|
);
|
|
}
|
|
}
|
|
}
|