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 DesktopResponse : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public byte[] Image { get; set; }
|
|
|
|
|
|
2015-04-02 08:26:57 +00:00
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public int Quality { get; set; }
|
|
|
|
|
|
2014-07-08 12:58:53 +00:00
|
|
|
|
public DesktopResponse() { }
|
2015-04-02 08:26:57 +00:00
|
|
|
|
public DesktopResponse(byte[] image, int quality)
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
this.Image = image;
|
2015-04-02 08:26:57 +00:00
|
|
|
|
this.Quality = quality;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
|
|
|
|
client.Send<DesktopResponse>(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|