Quasar/Client/Core/Packets/ServerPackets/KeepAlive.cs

22 lines
437 B
C#
Raw Normal View History

2015-01-13 18:29:11 +00:00
using System;
2014-07-08 12:58:53 +00:00
using ProtoBuf;
2015-01-13 18:29:11 +00:00
namespace xClient.Core.Packets.ServerPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
internal class KeepAlive : IPacket
{
[ProtoMember(1)]
public DateTime TimeSent { get; private set; }
public Client Client;
public void Execute(Client client)
{
TimeSent = DateTime.Now;
Client = client;
client.Send<KeepAlive>(this);
}
}
}