yavsc/src/Yavsc.Server/Interfaces/IConnexionManager.cs

33 lines
1.1 KiB
C#
Raw Normal View History

2019-06-14 10:03:51 +01:00
using Yavsc.ViewModels.Chat;
namespace Yavsc.Services
{
public interface IConnexionManager {
void SetUserName(string cxId, string userName);
string GetUserName (string cxId);
void OnConnected(string cxId, bool isCop);
2019-06-14 10:03:51 +01:00
bool IsConnected(string candidate);
2026-07-04 15:28:07 +01:00
void OnDisconnected (string cxId);
2019-06-14 10:03:51 +01:00
bool IsPresent(string roomName, string userName);
2026-07-04 15:28:07 +01:00
ChatRoomInfo Join(string roomName, string cxId);
2019-06-14 10:03:51 +01:00
bool Part(string cxId, string roomName, string reason);
bool Kick(string cxId, string userName, string roomName, string reason);
bool Op(string roomName, string userName);
2026-09-13 03:09:12 +01:00
bool DeOp(string roomName, string userName);
2019-06-14 10:03:51 +01:00
bool Hop(string roomName, string userName);
2026-07-04 15:28:07 +01:00
bool DeHop(string roomName, string userName);
bool TryGetChanInfo(string room, out ChatRoomInfo channelInfo);
2019-06-14 10:03:51 +01:00
IEnumerable<string> GetConnexionIds(string userName);
void SetErrorHandler(Action<string,string> errorHandler);
IEnumerable<ChannelShortInfo> ListChannels(string pattern);
2026-07-04 15:28:07 +01:00
2019-06-14 10:03:51 +01:00
}
}