Fixed 7tv & Twitch reconnection. Added adbreak, follow, subscription handlers for Twitch. Added multi-chat support. Added support to unsubscribe from Twitch event subs.

This commit is contained in:
Tom
2024-08-06 19:29:29 +00:00
parent 75fcb8e0f8
commit 8014c12bc5
60 changed files with 1064 additions and 672 deletions

View File

@@ -0,0 +1,11 @@
using HermesSocketLibrary.Requests.Messages;
namespace TwitchChatTTS.Twitch.Redemptions
{
public interface IRedemptionManager
{
Task Execute(RedeemableAction action, string senderDisplayName, long senderId);
IList<RedeemableAction> Get(string twitchRedemptionId);
void Initialize(IEnumerable<Redemption> redemptions, IDictionary<string, RedeemableAction> actions);
}
}

View File

@@ -11,7 +11,7 @@ using TwitchChatTTS.OBS.Socket.Data;
namespace TwitchChatTTS.Twitch.Redemptions
{
public class RedemptionManager
public class RedemptionManager : IRedemptionManager
{
private readonly IDictionary<string, IList<RedeemableAction>> _store;
private readonly User _user;