Quasar/Server/Core/Packets/ServerPackets/GetDesktop.cs

30 lines
591 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
using xServer.Core.Networking;
2014-07-08 12:58:53 +00:00
2015-01-13 18:29:11 +00:00
namespace xServer.Core.Packets.ServerPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
2015-07-14 17:00:31 +00:00
public class GetDesktop : IPacket
2014-07-08 12:58:53 +00:00
{
[ProtoMember(1)]
public int Quality { get; set; }
2014-07-08 12:58:53 +00:00
[ProtoMember(2)]
public int Monitor { get; set; }
2014-07-08 12:58:53 +00:00
2015-07-14 17:00:31 +00:00
public GetDesktop()
{
}
2015-07-14 17:00:31 +00:00
public GetDesktop(int quality, int monitor)
2014-07-08 12:58:53 +00:00
{
this.Quality = quality;
this.Monitor = monitor;
2014-07-08 12:58:53 +00:00
}
public void Execute(Client client)
{
client.Send(this);
2014-07-08 12:58:53 +00:00
}
}
}