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

18 lines
528 B
C#

namespace SharpChat.SockChat.PacketsS2C {
public class UserNotFoundErrorS2CPacket : SockChatTimedS2CPacket {
private readonly string UserName;
public UserNotFoundErrorS2CPacket(string userName) {
UserName = userName;
}
public override string Pack() {
return string.Format(
"2\t{0}\t-1\t1\fusernf\f{1}\t{2}\t10010",
TimeStamp.ToUnixTimeSeconds(),
UserName,
MessageId
);
}
}
}