Files
Quasar/Server/Core/Packets/ClientPackets/GetDesktopResponse.cs
T
2015-07-26 10:42:53 +02:00

38 lines
871 B
C#

using ProtoBuf;
using xServer.Core.Networking;
namespace xServer.Core.Packets.ClientPackets
{
[ProtoContract]
public class GetDesktopResponse : IPacket
{
[ProtoMember(1)]
public byte[] Image { get; set; }
[ProtoMember(2)]
public int Quality { get; set; }
[ProtoMember(3)]
public int Monitor { get; set; }
[ProtoMember(4)]
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.SendBlocking(this);
}
}
}