milimoe 14ff58f4f4
为服务器统一数据访问连接 (#37)
* 添加 Web API 和 RESTful API 模式;
* 添加 SQLite 模式;
* 添加 ISocketMessageProcessor 和 ISocketListener<> 接口,用于统一数据访问;
* 重做了 ISocketModel;
* 完善了 WebSocket 的连接模式。
2024-10-04 12:39:15 +08:00

23 lines
570 B
C#

using Milimoe.FunGame.Core.Api.Utility;
using Milimoe.FunGame.Core.Interface.Base;
using Milimoe.FunGame.Core.Library.Common.Network;
namespace Milimoe.FunGame.WebAPI.Architecture
{
public class WebAPIListener : ISocketListener<ServerWebSocket>
{
public string Name => "WebAPIListener";
public ConcurrentModelList<IServerModel> ClientList { get; } = [];
public ConcurrentModelList<IServerModel> UserList { get; } = [];
public List<string> BannedList { get; } = [];
public void Close()
{
}
}
}