Fixed a lot of compiler warnings. Fixed 7tv connection.

This commit is contained in:
Tom
2025-01-17 00:54:47 +00:00
parent b8d0e8cfd8
commit 5e33d594d2
78 changed files with 314 additions and 235 deletions

View File

@ -2,8 +2,8 @@ namespace TwitchChatTTS.OBS.Socket.Data
{
public class EventMessage
{
public string EventType { get; set; }
public required string EventType { get; set; }
public int EventIntent { get; set; }
public Dictionary<string, object> EventData { get; set; }
public required Dictionary<string, object> EventData { get; set; }
}
}

View File

@ -2,13 +2,13 @@ namespace TwitchChatTTS.OBS.Socket.Data
{
public class HelloMessage
{
public string ObsWebSocketVersion { get; set; }
public required string ObsWebSocketVersion { get; set; }
public int RpcVersion { get; set; }
public AuthenticationMessage Authentication { get; set; }
public required AuthenticationMessage Authentication { get; set; }
}
public class AuthenticationMessage {
public string Challenge { get; set; }
public string Salt { get; set; }
public required string Challenge { get; set; }
public required string Salt { get; set; }
}
}

View File

@ -2,9 +2,9 @@ namespace TwitchChatTTS.OBS.Socket.Data
{
public class OBSSceneItem
{
public string SourceUuid { get; set; }
public string SourceName { get; set; }
public string SourceType { get; set; }
public required string SourceUuid { get; set; }
public required string SourceName { get; set; }
public required string SourceType { get; set; }
public int SceneItemId { get; set; }
}
}

View File

@ -1,5 +1,3 @@
using Newtonsoft.Json;
namespace TwitchChatTTS.OBS.Socket.Data
{
public class RequestBatchMessage

View File

@ -2,7 +2,7 @@ namespace TwitchChatTTS.OBS.Socket.Data
{
public class RequestBatchResponseMessage
{
public string RequestId { get; set; }
public IEnumerable<object> Results { get; set; }
public required string RequestId { get; set; }
public required IEnumerable<object> Results { get; set; }
}
}

View File

@ -3,7 +3,7 @@ namespace TwitchChatTTS.OBS.Socket.Data
public class RequestMessage
{
public string RequestType { get; set; }
public string RequestId { get; set; }
public string? RequestId { get; set; }
public Dictionary<string, object> RequestData { get; set; }
public RequestMessage(string type, string id, Dictionary<string, object> data)

View File

@ -1,12 +1,10 @@
using Newtonsoft.Json;
namespace TwitchChatTTS.OBS.Socket.Data
{
public class RequestResponseMessage
{
public string RequestType { get; set; }
public string RequestId { get; set; }
public object RequestStatus { get; set; }
public Dictionary<string, object> ResponseData { get; set; }
public required string RequestType { get; set; }
public required string RequestId { get; set; }
public required object RequestStatus { get; set; }
public required Dictionary<string, object> ResponseData { get; set; }
}
}

View File

@ -5,7 +5,7 @@ namespace TwitchChatTTS.OBS.Socket.Data
public int Alignment { get; set; }
public int BoundsAlignment { get; set; }
public double BoundsHeight { get; set; }
public string BoundsType { get; set; }
public required string BoundsType { get; set; }
public double BoundsWidth { get; set; }
public int CropBottom { get; set; }
public int CropLeft { get; set; }