Added Actions & Redemptions updates via websocket messages. Updated RedemptionManager due to live changes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user