sharp-chat/SharpChat/PacketsS2C/UserUpdateNotificationS2CPacket.cs

21 lines
665 B
C#

namespace SharpChat.PacketsS2C {
public class UserUpdateNotificationS2CPacket : SockChatTimedS2CPacket {
private readonly string PreviousName;
private readonly string NewName;
public UserUpdateNotificationS2CPacket(string previousName, string newName) {
PreviousName = previousName;
NewName = newName;
}
public override string Pack() {
return string.Format(
"2\t{0}\t-1\t0\fnick\f{1}\f{2}\t{3}\t10010",
TimeStamp.ToUnixTimeSeconds(),
PreviousName,
NewName,
MessageId
);
}
}
}