2024-05-20 23:40:34 +00:00
|
|
|
|
namespace SharpChat.SockChat.PacketsS2C {
|
2024-05-20 23:00:47 +00:00
|
|
|
|
public class UserUpdateNotificationS2CPacket : SockChatTimedS2CPacket {
|
2024-05-10 18:29:48 +00:00
|
|
|
|
private readonly string PreviousName;
|
|
|
|
|
private readonly string NewName;
|
2024-05-10 15:07:56 +00:00
|
|
|
|
|
2024-05-20 23:00:47 +00:00
|
|
|
|
public UserUpdateNotificationS2CPacket(string previousName, string newName) {
|
2024-05-19 01:53:14 +00:00
|
|
|
|
PreviousName = previousName;
|
|
|
|
|
NewName = newName;
|
2024-05-10 15:07:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
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",
|
2024-05-20 02:16:38 +00:00
|
|
|
|
TimeStamp.ToUnixTimeSeconds(),
|
2024-05-10 17:28:52 +00:00
|
|
|
|
PreviousName,
|
|
|
|
|
NewName,
|
2024-05-20 02:16:38 +00:00
|
|
|
|
MessageId
|
2024-05-10 17:28:52 +00:00
|
|
|
|
);
|
2024-05-10 15:07:56 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|