Quasar/Client/Core/Packets/ServerPackets/Commands/DownloadFile.cs

27 lines
554 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
namespace Core.Packets.ServerPackets
{
[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);
}
}
}