/// <summary> /// Ctor /// </summary> /// <param name="messagingService">LWMessagePush's IMessagingService instance</param> public ApiController(IMessagingService messagingService) { _messagingService = messagingService; // Initialize chat app manager ChatAppManager.Instance().Init(new ChatAppManagerSettings() { MessagingServiceInstance = _messagingService, UserPersistenceType = UserPersistenceTypes.InMemory }); }
public void Ping(string userName) { ChatAppManager.Instance().Ping(userName); }
public bool Logout(string userName) { return(ChatAppManager.Instance().Logout(userName)); }
public void SendMessageToUser(MessageDTO message) { ChatAppManager.Instance().SendMessageToUser(message); }
/// <summary> /// Retrieves the user list /// </summary> /// <returns>List of UserDTO</returns> public List <UserDTO> GetUserList() { return(ChatAppManager.Instance().GetUserList()); }