cleaning and refactoring chat system

and also fixing chat inputs validation.
This commit is contained in:
Paul Schneider 2019-09-14 13:59:53 +01:00
commit 137b4a3abf
8 changed files with 167 additions and 165 deletions

View file

@ -8,11 +8,13 @@ namespace Yavsc.Services
void SetUserName(string cxId, string userName);
string GetUserName (string cxId);
void OnConnected(string userName, bool isCop);
void OnConnected(string cxId, bool isCop);
bool IsConnected(string candidate);
void OnDisctonnected (string cxId);
bool IsPresent(string roomName, string userName);
ChatRoomInfo Join(string roomName, string userName);
ChatRoomInfo Join(string roomName, string cxId);
bool Part(string cxId, string roomName, string reason);
@ -25,7 +27,6 @@ namespace Yavsc.Services
bool TryGetChanInfo(string room, out ChatRoomInfo chanInfo);
IEnumerable<string> GetConnexionIds(string userName);
void Abort(string connectionId);
void SetErrorHandler(Action<string,string> errorHandler);
IEnumerable<ChannelShortInfo> ListChannels(string pattern);