21 lines
659 B
C#
21 lines
659 B
C#
namespace SharpChat.PacketsS2C {
|
|
public class WhoisResponseS2CPacket : SockChatTimedS2CPacket {
|
|
private readonly string UserName;
|
|
private readonly string RemoteAddress;
|
|
|
|
public WhoisResponseS2CPacket(string userName, string remoteAddress) {
|
|
UserName = userName;
|
|
RemoteAddress = remoteAddress;
|
|
}
|
|
|
|
public override string Pack() {
|
|
return string.Format(
|
|
"2\t{0}\t-1\t0\fipaddr\f{1}\f{2}\t{3}\t10010",
|
|
TimeStamp.ToUnixTimeSeconds(),
|
|
UserName,
|
|
RemoteAddress,
|
|
MessageId
|
|
);
|
|
}
|
|
}
|
|
}
|