Exemple #1
0
        public UpdateMessagesTests()
        {
            var testsData = TestsData.Create(nameof(UpdateMessagesTests));

            fillTestDbHelper      = testsData.FillTestDbHelper;
            updateMessagesService = testsData.AppServiceProvider.UpdateMessagesService;
        }
 public NodeNoticeService(IAppServiceProvider appServiceProvider)
 {
     _connectionsService     = appServiceProvider.ConnectionsService;
     _updateMessagesService  = appServiceProvider.UpdateMessagesService;
     _loadChatsService       = appServiceProvider.LoadChatsService;
     _loadDialogsService     = appServiceProvider.LoadDialogsService;
     _loadChannelsService    = appServiceProvider.LoadChannelsService;
     _pendingMessagesService = appServiceProvider.PendingMessagesService;
     _nodesService           = appServiceProvider.NodesService;
 }
 public MessagesUpdatedNodeNoticeHandler(NodeNotice notice,
                                         NodeConnection nodeConnection,
                                         IConversationsNoticeService conversationsNoticeService,
                                         IUpdateMessagesService updateMessagesService,
                                         IAttachmentsService attachmentsService)
 {
     this.notice                     = (MessagesUpdatedNodeNotice)notice;
     this.nodeConnection             = nodeConnection;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateMessagesService      = updateMessagesService;
     this.attachmentsService         = attachmentsService;
 }
Exemple #4
0
 public EditMessageRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateMessagesService updateMessagesService,
     IAttachmentsService attachmentsService)
 {
     this.request                    = (EditMessageRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateMessagesService      = updateMessagesService;
     this.attachmentsService         = attachmentsService;
 }
Exemple #5
0
 public MessagesReadRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateMessagesService updateMessagesService,
     ILoadDialogsService loadDialogsService)
 {
     this.request                    = (MessagesReadRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateMessagesService      = updateMessagesService;
     this.loadDialogsService         = loadDialogsService;
 }
Exemple #6
0
 public MessagesReadNoticeHandler(NodeNotice notice,
                                  NodeConnection current,
                                  IConversationsNoticeService conversationsNoticeService,
                                  IUpdateMessagesService updateMessagesService,
                                  IUpdateChatsService updateChatsService,
                                  ILoadDialogsService loadDialogsService,
                                  IUpdateChannelsService updateChannelsService)
 {
     this.notice  = (MessagesReadNodeNotice)notice;
     this.current = current;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateMessagesService      = updateMessagesService;
     this.updateChatsService         = updateChatsService;
     this.loadDialogsService         = loadDialogsService;
     this.updateChannelsService      = updateChannelsService;
 }