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

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