Redid stores. Added user store. Added Channel Manager, to manage data from a single channel.

This commit is contained in:
Tom
2024-10-19 01:50:46 +00:00
parent 3f3ba63554
commit 4d0b38babd
22 changed files with 654 additions and 475 deletions

11
Models/Channel.cs Normal file
View File

@ -0,0 +1,11 @@
using HermesSocketServer.Store;
namespace HermesSocketServer.Models
{
public class Channel
{
public string Id { get; set; }
public User User { get; set; }
public ChatterStore Chatters { get; set; }
}
}

9
Models/ChatterVoice.cs Normal file
View File

@ -0,0 +1,9 @@
namespace HermesSocketServer.Models
{
public class ChatterVoice
{
public string ChatterId { get; set; }
public string UserId { get; set; }
public string VoiceId { get; set; }
}
}

11
Models/User.cs Normal file
View File

@ -0,0 +1,11 @@
namespace HermesSocketServer.Models
{
public class User
{
public string Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string Role { get; set; }
public string DefaultVoice { get; set; }
}
}

8
Models/Voice.cs Normal file
View File

@ -0,0 +1,8 @@
namespace HermesSocketServer.Models
{
public class Voice
{
public string Id { get; set; }
public string Name { get; set; }
}
}