2014-07-08 05:58:53 -07:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2015-01-13 10:29:11 -08:00
|
|
|
|
namespace xServer.Core.Packets.ClientPackets
|
2014-07-08 05:58:53 -07:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
|
|
|
|
public class DownloadFileResponse : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string Filename { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public byte[] FileByte { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
public DownloadFileResponse() { }
|
|
|
|
|
public DownloadFileResponse(string filename, byte[] filebyte, int id)
|
|
|
|
|
{
|
|
|
|
|
this.Filename = filename;
|
|
|
|
|
this.FileByte = filebyte;
|
|
|
|
|
this.ID = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
|
|
|
|
client.Send<DownloadFileResponse>(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|