コード例 #1
0
        /// <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
            });
        }
コード例 #2
0
 public void Ping(string userName)
 {
     ChatAppManager.Instance().Ping(userName);
 }
コード例 #3
0
 public bool Logout(string userName)
 {
     return(ChatAppManager.Instance().Logout(userName));
 }
コード例 #4
0
 public void SendMessageToUser(MessageDTO message)
 {
     ChatAppManager.Instance().SendMessageToUser(message);
 }
コード例 #5
0
 /// <summary>
 /// Retrieves the user list
 /// </summary>
 /// <returns>List of UserDTO</returns>
 public List <UserDTO> GetUserList()
 {
     return(ChatAppManager.Instance().GetUserList());
 }