2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
2015-06-05 21:07:37 +00:00
|
|
|
|
using xServer.Core.Networking;
|
2015-07-23 14:55:44 +00:00
|
|
|
|
using RemoteDesktopAction = xServer.Core.Commands.CommandHandler.RemoteDesktopAction;
|
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)]
|
2015-04-02 08:26:57 +00:00
|
|
|
|
public int Quality { get; set; }
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2015-04-13 07:16:44 +00:00
|
|
|
|
public int Monitor { get; set; }
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-07-23 14:55:44 +00:00
|
|
|
|
[ProtoMember(3)]
|
|
|
|
|
public RemoteDesktopAction Action { get; set; }
|
|
|
|
|
|
2015-07-14 17:00:31 +00:00
|
|
|
|
public GetDesktop()
|
2015-04-21 18:27:52 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-23 14:55:44 +00:00
|
|
|
|
public GetDesktop(int quality, int monitor, RemoteDesktopAction action)
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
2015-04-02 08:26:57 +00:00
|
|
|
|
this.Quality = quality;
|
2015-04-13 07:16:44 +00:00
|
|
|
|
this.Monitor = monitor;
|
2015-07-23 14:55:44 +00:00
|
|
|
|
this.Action = action;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
2015-05-19 01:01:38 +00:00
|
|
|
|
client.Send(this);
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|