Fixed a lot of compiler warnings. Fixed 7tv connection.
This commit is contained in:
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace TwitchChatTTS.OBS.Socket.Data
|
||||
{
|
||||
public class RequestBatchMessage
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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)
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
Reference in New Issue
Block a user