Using Serilog. Added partial OBS batch request support. Added update checking. Added more commands. Added enabled/disabled TTS voices. And more.
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class EventMessage
|
||||
{
|
||||
public string EventType { get; set; }
|
||||
|
@ -1,6 +1,5 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class HelloMessage
|
||||
{
|
||||
public string ObsWebSocketVersion { get; set; }
|
||||
|
@ -1,6 +1,5 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class IdentifiedMessage
|
||||
{
|
||||
public int NegotiatedRpcVersion { get; set; }
|
||||
|
@ -1,13 +1,13 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class IdentifyMessage
|
||||
{
|
||||
public int RpcVersion { get; set; }
|
||||
public string? Authentication { get; set; }
|
||||
public int EventSubscriptions { get; set; }
|
||||
|
||||
public IdentifyMessage(int version, string auth, int subscriptions) {
|
||||
public IdentifyMessage(int version, string auth, int subscriptions)
|
||||
{
|
||||
RpcVersion = version;
|
||||
Authentication = auth;
|
||||
EventSubscriptions = subscriptions;
|
||||
|
25
OBS/Socket/Data/RequestBatchMessage.cs
Normal file
25
OBS/Socket/Data/RequestBatchMessage.cs
Normal file
@ -0,0 +1,25 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
public class RequestBatchMessage
|
||||
{
|
||||
public string RequestId { get; set; }
|
||||
public bool HaltOnFailure { get; set; }
|
||||
public RequestBatchExecutionType ExecutionType { get; set; }
|
||||
public IEnumerable<object> Requests { get; set;}
|
||||
|
||||
public RequestBatchMessage(string id, IEnumerable<object> requests, bool haltOnFailure = false, RequestBatchExecutionType executionType = RequestBatchExecutionType.SerialRealtime)
|
||||
{
|
||||
RequestId = id;
|
||||
Requests = requests;
|
||||
HaltOnFailure = haltOnFailure;
|
||||
ExecutionType = executionType;
|
||||
}
|
||||
}
|
||||
|
||||
public enum RequestBatchExecutionType {
|
||||
None = -1,
|
||||
SerialRealtime = 0,
|
||||
SerialFrame = 1,
|
||||
Parallel = 2
|
||||
}
|
||||
}
|
8
OBS/Socket/Data/RequestBatchResponseMessage.cs
Normal file
8
OBS/Socket/Data/RequestBatchResponseMessage.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
public class RequestBatchResponseMessage
|
||||
{
|
||||
public string RequestId { get; set; }
|
||||
public IEnumerable<object> Results { get; set; }
|
||||
}
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class RequestMessage
|
||||
{
|
||||
public string RequestType { get; set; }
|
||||
public string RequestId { get; set; }
|
||||
public Dictionary<string, object> RequestData { get; set; }
|
||||
|
||||
public RequestMessage(string type, string id, Dictionary<string, object> data) {
|
||||
public RequestMessage(string type, string id, Dictionary<string, object> data)
|
||||
{
|
||||
RequestType = type;
|
||||
RequestId = id;
|
||||
RequestData = data;
|
||||
|
@ -1,6 +1,5 @@
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
[Serializable]
|
||||
public class RequestResponseMessage
|
||||
{
|
||||
public string RequestType { get; set; }
|
||||
|
Reference in New Issue
Block a user