Пример #1
0
 public async void SendConverationActionNodeNoticeAsync(long userId, long?dialogUserId, long conversationId, ConversationType conversationType, ConversationAction conversationAction, List <long> nodesIds)
 {
     try
     {
         ConversationActionNodeNotice notice = new ConversationActionNodeNotice(conversationType, conversationAction, conversationId, userId, dialogUserId);
         await SendNoticeToNodesAsync(notice, nodesIds).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }
Пример #2
0
 public ConversationActionNodeNoticeHandler(
     NodeNotice notice,
     NodeConnection nodeConnection,
     IConversationsService conversationsService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadDialogsService loadDialogsService,
     ISystemMessagesService systemMessagesService)
 {
     this.notice                     = (ConversationActionNodeNotice)notice;
     this.nodeConnection             = nodeConnection;
     this.conversationsService       = conversationsService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadDialogsService         = loadDialogsService;
     this.systemMessagesService      = systemMessagesService;
 }