public async Task <List <ChatUserVm> > GetChatUsersInformationAsync(List <long> usersId, long chatId, NodeConnection nodeConnection) { try { GetChatUsersInformationNodeRequest request = new GetChatUsersInformationNodeRequest(usersId, chatId); SendRequest(nodeConnection, request); ChatUsersNodeResponse response = (ChatUsersNodeResponse) await GetResponseAsync(request).ConfigureAwait(false); return(response.ChatUsers); } catch { return(null); } }
public GetChatUsersInformationNodeRequestHandler(NodeRequest request, NodeConnection current, ILoadChatsService loadChatsService) { this.request = (GetChatUsersInformationNodeRequest)request; this.current = current; this.loadChatsService = loadChatsService; }