Added TTS Voice & TTS Voice State data classes. Renamed certain classes. Fixed some compiler warnings.

This commit is contained in:
Tom
2025-01-17 04:38:03 +00:00
parent 78bab88165
commit e7a3b2a367
20 changed files with 70 additions and 55 deletions

View File

@@ -2,7 +2,7 @@ namespace HermesSocketLibrary.Socket.Data
{
public class ChatterMessage
{
public long Id { get; set; }
public string Name { get; set; }
public required long Id { get; set; }
public required string Name { get; set; }
}
}

View File

@@ -2,12 +2,13 @@ namespace HermesSocketLibrary.Socket.Data
{
public class Connection
{
public string Name { get; set; }
public string Type { get; set; }
public string ClientId { get; set; }
public string AccessToken { get; set; }
public string GrantType { get; set; }
public string Scope { get; set; }
public required string UserId { get; set; }
public required string Name { get; set; }
public required string Type { get; set; }
public required string ClientId { get; set; }
public required string AccessToken { get; set; }
public required string GrantType { get; set; }
public required string Scope { get; set; }
public DateTime ExpiresAt { get; set; }
public bool Default { get; set; }
}

View File

@@ -2,6 +2,6 @@ namespace HermesSocketLibrary.Socket.Data
{
public class EmoteDetailsMessage
{
public IDictionary<string, string> Emotes { get; set; }
public required IDictionary<string, string> Emotes { get; set; }
}
}

View File

@@ -2,10 +2,10 @@ namespace HermesSocketLibrary.Socket.Data
{
public class EmoteUsageMessage
{
public string MessageId { get; set; }
public required string MessageId { get; set; }
public DateTime DateTime { get; set; }
public long BroadcasterId { get; set; }
public ICollection<string> Emotes { get; set; }
public required ICollection<string> Emotes { get; set; }
public long ChatterId { get; set; }
}
}

View File

@@ -2,8 +2,8 @@ namespace HermesSocketLibrary.Socket.Data
{
public class HermesLoginMessage
{
public string ApiKey { get; set; }
public string Password { get; set; }
public required string ApiKey { get; set; }
public string? Password { get; set; }
public bool WebLogin { get; set; }
public int? MajorVersion { get; set; }
public int? MinorVersion { get; set; }

View File

@@ -5,6 +5,9 @@ namespace HermesSocketLibrary.Socket.Data
public class LoginAckMessage
{
public string UserId { get; set; }
public string ProviderAccountId { get; set; }
public string SessionId { get; set; }
public string UserName { get; set; }
public bool AnotherClient { get; set; }
public long? OwnerId { get; set; }
public bool Admin { get; set; }
@@ -14,7 +17,7 @@ namespace HermesSocketLibrary.Socket.Data
public IList<string> EnabledTTSVoices { get; set; }
public IDictionary<string, string> TTSVoicesAvailable { get; set; }
public IList<TTSWordFilter> WordFilters { get; set; }
public IEnumerable<TTSWordFilter> WordFilters { get; set; }
public IList<Connection> Connections { get; set; }
}

View File

@@ -1,12 +0,0 @@
namespace HermesSocketServer.Models
{
public class PolicyMessage
{
public Guid Id { get; set; }
public string UserId { get; set; }
public Guid GroupId { get; set; }
public string Path { get; set; }
public int Usage { get; set; }
public int Span { get; set; }
}
}

View File

@@ -5,5 +5,6 @@ namespace HermesSocketLibrary.Socket.Data
public RequestMessage? Request { get; set; }
public string? Nounce { get; set; }
public object? Data { get; set; }
public string? Error { get; set; }
}
}

View File

@@ -2,8 +2,8 @@ namespace HermesSocketLibrary.Socket.Data
{
public class RequestMessage
{
public string RequestId { get; set; }
public string? Type { get; set; }
public string? RequestId { get; set; }
public required string Type { get; set; }
public IDictionary<string, object>? Data { get; set; }
public string? Nounce { get; set; }
}