Added group support for websockets.

This commit is contained in:
Tom
2025-01-18 16:37:58 +00:00
parent aed0421843
commit a49e52a6bb
7 changed files with 164 additions and 2 deletions

View File

@ -77,6 +77,16 @@ namespace TwitchChatTTS.Chat.Groups
return 0;
}
public void Modify(Group group)
{
_groups[group.Name] = group;
}
public bool Remove(string groupId)
{
return _groups.Remove(groupId);
}
public bool Remove(long chatterId, string groupId)
{
if (_chatters.TryGetValue(chatterId, out var groups))

View File

@ -12,6 +12,8 @@ namespace TwitchChatTTS.Chat.Groups
IEnumerable<string> GetGroupNamesFor(long chatter);
int GetPriorityFor(long chatter);
int GetPriorityFor(IEnumerable<string> groupIds);
void Modify(Group group);
bool Remove(string groupId);
bool Remove(long chatter, string groupId);
}
}