Quasar/Client/Core/Packets/ClientPackets/DirectoryResponse.cs

33 lines
723 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
2015-01-13 18:29:11 +00:00
namespace xClient.Core.Packets.ClientPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
public class DirectoryResponse : IPacket
{
[ProtoMember(1)]
public string[] Files { get; set; }
[ProtoMember(2)]
public string[] Folders { get; set; }
[ProtoMember(3)]
public long[] FilesSize { get; set; }
public DirectoryResponse()
{
}
2014-07-08 12:58:53 +00:00
public DirectoryResponse(string[] files, string[] folders, long[] filessize)
{
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
}
}
}