Added & modified several message types.

This commit is contained in:
Tom
2024-08-10 19:33:33 +00:00
parent d8522584c4
commit 9d838e66ad
21 changed files with 190 additions and 72 deletions

View File

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HermesSocketLibrary.Requests.Messages
{
public class EmoteInfo

View File

@ -0,0 +1,9 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class Group
{
public string Id { get; set; }
public string Name { get; set; }
public int Priority { get; set; }
}
}

View File

@ -0,0 +1,8 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class GroupChatter
{
public string GroupId { get; set; }
public long ChatterId { get; set;}
}
}

View File

@ -0,0 +1,9 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class GroupInfo
{
public IEnumerable<Group> Groups { get; set; }
public IEnumerable<GroupChatter> GroupChatters { get; set; }
public IEnumerable<GroupPermission> GroupPermissions { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class GroupPermission
{
public string Id { get; set; }
public string GroupId { get; set; }
public string Path { get; set; }
public bool? Allow { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class RedeemableAction
{
public string Name { get; set; }
public string Type { get; set; }
public IDictionary<string, string> Data { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace HermesSocketLibrary.Requests.Messages
{
public class Redemption
{
public string Id { get; set; }
public string RedemptionId { get; set; }
public string ActionName { get; set; }
public int Order { get; set; }
public bool State { get; set; }
}
}

View File

@ -1,3 +1,6 @@
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
namespace HermesSocketLibrary.Requests.Messages
{
public class TTSWordFilter
@ -5,7 +8,8 @@ namespace HermesSocketLibrary.Requests.Messages
public string? Id { get; set; }
public string? Search { get; set; }
public string? Replace { get; set; }
[JsonIgnore]
public Regex? Regex { get; set; }
public bool IsRegex { get; set; }