mirror of https://github.com/quasar/Quasar.git
22 lines
437 B
C#
22 lines
437 B
C#
using System;
|
|
using ProtoBuf;
|
|
|
|
namespace xClient.Core.Packets.ServerPackets
|
|
{
|
|
[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);
|
|
}
|
|
}
|
|
}
|