Added stores for connections. Added requests for groups, group chatters, group permissions & connections. Using TTS Voice State store.

This commit is contained in:
Tom
2025-01-17 04:32:31 +00:00
parent 422cd91db2
commit 6d955f245a
29 changed files with 759 additions and 67 deletions

View File

@@ -23,7 +23,7 @@ namespace HermesSocketServer.Requests
int count = int.Parse(data["count"].ToString()!);
int span = int.Parse(data["span"].ToString()!);
bool result = channel.Policies.Set(id.ToString(), new Policy()
var policy = new Policy()
{
Id = id,
UserId = channel.Id,
@@ -31,12 +31,12 @@ namespace HermesSocketServer.Requests
Path = path,
Usage = count,
Span = span,
});
};
bool result = channel.Policies.Modify(id.ToString(), policy);
if (result)
{
var policy = channel.Policies.Get(id.ToString());
_logger.Information($"Updated policy to channel [policy id: {id}][group id: {groupId}][path: {path}][count: {count}][span: {span}][channel: {channel.Id}]");
_logger.Information($"Updated policy on channel [policy id: {id}][group id: {groupId}][path: {path}][count: {count}][span: {span}][channel: {channel.Id}]");
return Task.FromResult(RequestResult.Successful(policy));
}
return Task.FromResult(RequestResult.Failed("Something went wrong when updating the cache."));