Added group support for websockets.
This commit is contained in:
@ -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))
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user