Quasar/Server/Core/Packets/ServerPackets/DoDownloadFile.cs

30 lines
601 B
C#

using ProtoBuf;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ServerPackets
{
[ProtoContract]
public class DoDownloadFile : IPacket
{
[ProtoMember(1)]
public string RemotePath { get; set; }
[ProtoMember(2)]
public int ID { get; set; }
public DoDownloadFile()
{
}
public DoDownloadFile(string remotepath, int id)
{
this.RemotePath = remotepath;
this.ID = id;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}