mirror of https://github.com/quasar/Quasar.git
34 lines
763 B
C#
34 lines
763 B
C#
using ProtoBuf;
|
|
using xServer.Core.Networking;
|
|
|
|
namespace xServer.Core.Packets.ClientPackets
|
|
{
|
|
[ProtoContract]
|
|
public class GetDirectoryResponse : IPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public string[] Files { get; set; }
|
|
|
|
[ProtoMember(2)]
|
|
public string[] Folders { get; set; }
|
|
|
|
[ProtoMember(3)]
|
|
public long[] FilesSize { get; set; }
|
|
|
|
public GetDirectoryResponse()
|
|
{
|
|
}
|
|
|
|
public GetDirectoryResponse(string[] files, string[] folders, long[] filessize)
|
|
{
|
|
this.Files = files;
|
|
this.Folders = folders;
|
|
this.FilesSize = filessize;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.Send(this);
|
|
}
|
|
}
|
|
} |