Quasar/Server/Core/Packets/ClientPackets/GetDirectoryResponse.cs

34 lines
763 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
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-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)
{
client.Send(this);
2014-07-08 12:58:53 +00:00
}
}
}