Beispiel #1
0
 public GetChatUsersRequestHandler(
     Request request, ClientConnection clientConnection, ILoadChatsService loadChatsService,
     IPrivacyService privacyService, IConnectionsService connectionsService, INodeRequestSender nodeRequestSender, ICrossNodeService crossNodeService)
 {
     this.request            = (GetChatUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.loadChatsService   = loadChatsService;
     this.privacyService     = privacyService;
     this.connectionsService = connectionsService;
     this.nodeRequestSender  = nodeRequestSender;
     this.crossNodeService   = crossNodeService;
 }
Beispiel #2
0
        public IActionResult GetAllChatUsers(GetChatUsersRequest command)
        {
            var users = _chatUserService.GetAllChatUsers(command.ChatId, command.Username);

            return(Json(users));
        }