Added Actions & Redemptions updates via websocket messages. Updated RedemptionManager due to live changes.

This commit is contained in:
Tom
2025-01-06 14:36:54 +00:00
parent d74b132c0f
commit 77b37f04b6
14 changed files with 326 additions and 59 deletions

View File

@@ -4,8 +4,14 @@ namespace TwitchChatTTS.Twitch.Redemptions
{
public interface IRedemptionManager
{
void Add(RedeemableAction action);
void Add(Redemption redemption);
Task Execute(RedeemableAction action, string senderDisplayName, long senderId);
IList<RedeemableAction> Get(string twitchRedemptionId);
void Initialize(IEnumerable<Redemption> redemptions, IDictionary<string, RedeemableAction> actions);
IEnumerable<RedeemableAction> Get(string twitchRedemptionId);
void Initialize();
bool RemoveAction(string actionName);
bool RemoveRedemption(string redemptionId);
bool Update(Redemption redemption);
bool Update(RedeemableAction action);
}
}