Exemplo n.º 1
0
 public async void SendMessagesDeletedNodeNoticeAsync(long conversationId, ConversationType conversationType, List <MessageVm> messages, long requestorId)
 {
     try
     {
         MessagesDeletedNodeNotice notice = new MessagesDeletedNodeNotice(conversationId, conversationType, messages, requestorId);
         List <long> nodesIds             = messages.FirstOrDefault()?.NodesId?.ToList();
         await SendNoticeToNodesAsync(notice, nodesIds).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }
Exemplo n.º 2
0
 public MessagesDeletedNoticeHandler(
     NodeNotice notice,
     IConversationsNoticeService conversationsNoticeService,
     IDeleteMessagesService deleteMessagesService,
     ILoadChatsService loadChatsService,
     ILoadDialogsService loadDialogsService,
     ILoadChannelsService loadChannelsService)
 {
     this.notice = (MessagesDeletedNodeNotice)notice;
     this.conversationsNoticeService = conversationsNoticeService;
     this.deleteMessagesService      = deleteMessagesService;
     this.loadChatsService           = loadChatsService;
     this.loadDialogsService         = loadDialogsService;
     this.loadChannelsService        = loadChannelsService;
 }