mirror of https://github.com/quasar/Quasar.git
27 lines
554 B
C#
27 lines
554 B
C#
![]() |
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|