initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoDrawingEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int X { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Y { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int PrevX { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public int PrevY { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public int StrokeWidth { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int ColorArgb { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public bool IsEraser { get; set; }
|
||||
|
||||
[Key(8)]
|
||||
public bool IsClearAll { get; set; }
|
||||
|
||||
[Key(9)]
|
||||
public int MonitorIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoKeyboardEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte Key { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public bool KeyDown { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoMouseEvent : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public MouseAction Action { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public bool IsMouseDown { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int X { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public int Y { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public int MonitorIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetDesktop : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public bool CreateNew { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int DisplayIndex { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public RemoteDesktopStatus Status { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public bool UseGPU { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public int FramesRequested { get; set; } = 1;
|
||||
|
||||
[Key(7)]
|
||||
public bool IsBufferedMode { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
using Pulsar.Common.Video;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetDesktopResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public byte[] Image { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Quality { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int Monitor { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public Resolution Resolution { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public bool IsLastRequestedFrame { get; set; }
|
||||
|
||||
[Key(7)]
|
||||
public float FrameRate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.RemoteDesktop
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMonitors : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetMonitorsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user