2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
2015-06-05 21:07:37 +00:00
|
|
|
|
using xServer.Core.Networking;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ClientPackets
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public class GetDirectoryResponse : IPacket
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string[] Files { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public string[] Folders { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
|
|
|
|
public long[] FilesSize { get; set; }
|
|
|
|
|
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public GetDirectoryResponse()
|
2015-04-21 18:27:52 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public GetDirectoryResponse(string[] files, string[] folders, long[] filessize)
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
this.Files = files;
|
|
|
|
|
this.Folders = folders;
|
|
|
|
|
this.FilesSize = filessize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
2015-05-19 01:01:38 +00:00
|
|
|
|
client.Send(this);
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|