public virtual async Task <PagedResultDto <ChatMessage> > GetMyChatMessageAsync(UserMessageGetByPagedDto input)
        {
            var chatMessageCount = await _messageStore
                                   .GetChatMessageCountAsync(CurrentTenant.Id, CurrentUser.GetId(), input.ReceiveUserId,
                                                             input.Filter, input.MessageType);

            var chatMessages = await _messageStore
                               .GetChatMessageAsync(CurrentTenant.Id, CurrentUser.GetId(), input.ReceiveUserId,
                                                    input.Filter, input.Sorting, input.Reverse,
                                                    input.MessageType, input.SkipCount, input.MaxResultCount);

            return(new PagedResultDto <ChatMessage>(chatMessageCount, chatMessages));
        }
Ejemplo n.º 2
0
 public virtual async Task <PagedResultDto <ChatMessage> > GetMyChatMessageAsync(UserMessageGetByPagedDto userMessageGetByPaged)
 {
     return(await _chatAppService.GetMyChatMessageAsync(userMessageGetByPaged));
 }