sharp-chat/SharpChat.SockChat/PacketsS2C/UserUpdateNotificationS2CPacket.cs

22 lines
674 B
C#
Raw Normal View History

namespace SharpChat.SockChat.PacketsS2C {
public class UserUpdateNotificationS2CPacket : SockChatTimedS2CPacket {
private readonly string PreviousName;
private readonly string NewName;
public UserUpdateNotificationS2CPacket(string previousName, string newName) {
PreviousName = previousName;
NewName = newName;
}
2024-05-10 15:24:43 +00:00
public override string Pack() {
2024-05-10 17:28:52 +00:00
return string.Format(
"2\t{0}\t-1\t0\fnick\f{1}\f{2}\t{3}\t10010",
TimeStamp.ToUnixTimeSeconds(),
2024-05-10 17:28:52 +00:00
PreviousName,
NewName,
MessageId
2024-05-10 17:28:52 +00:00
);
}
}
}