mirror of https://github.com/quasar/Quasar.git
35 lines
821 B
C#
35 lines
821 B
C#
using ProtoBuf;
|
|
using xServer.Core.Networking;
|
|
using RemoteDesktopAction = xServer.Core.Commands.CommandHandler.RemoteDesktopAction;
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
|
{
|
|
[ProtoContract]
|
|
public class GetDesktop : IPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public int Quality { get; set; }
|
|
|
|
[ProtoMember(2)]
|
|
public int Monitor { get; set; }
|
|
|
|
[ProtoMember(3)]
|
|
public RemoteDesktopAction Action { get; set; }
|
|
|
|
public GetDesktop()
|
|
{
|
|
}
|
|
|
|
public GetDesktop(int quality, int monitor, RemoteDesktopAction action)
|
|
{
|
|
this.Quality = quality;
|
|
this.Monitor = monitor;
|
|
this.Action = action;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.Send(this);
|
|
}
|
|
}
|
|
} |