33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
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);
|
|
bool IsConnected(string candidate);
|
|
|
|
void OnDisconnected (string cxId);
|
|
bool IsPresent(string roomName, string userName);
|
|
|
|
ChatRoomInfo Join(string roomName, string cxId);
|
|
|
|
bool Part(string cxId, string roomName, string reason);
|
|
|
|
bool Kick(string cxId, string userName, string roomName, string reason);
|
|
|
|
bool Op(string roomName, string userName);
|
|
bool DeOp(string roomName, string userName);
|
|
bool Hop(string roomName, string userName);
|
|
bool DeHop(string roomName, string userName);
|
|
bool TryGetChanInfo(string room, out ChatRoomInfo channelInfo);
|
|
|
|
IEnumerable<string> GetConnexionIds(string userName);
|
|
|
|
void SetErrorHandler(Action<string,string> errorHandler);
|
|
IEnumerable<ChannelShortInfo> ListChannels(string pattern);
|
|
|
|
}
|
|
}
|