2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
|
|
|
|
public class DownloadFile : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string RemotePath { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
public DownloadFile() { }
|
|
|
|
|
public DownloadFile(string remotepath, int id)
|
|
|
|
|
{
|
|
|
|
|
this.RemotePath = remotepath;
|
|
|
|
|
this.ID = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
|
|
|
|
client.Send<DownloadFile>(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|