Esempio n. 1
0
 public DeleteFilesRequestHandler(Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, IFilesService filesService)
 {
     this.request           = (DeleteFilesRequest)request;
     this.clientConnection  = clientConnection;
     this.nodeNoticeService = nodeNoticeService;
     this.filesService      = filesService;
 }
Esempio n. 2
0
 public SetNewKeysRequestHandler(Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, IKeysService keysService)
 {
     this.request           = (SetNewKeysRequest)request;
     this.clientConnection  = clientConnection;
     this.nodeNoticeService = nodeNoticeService;
     this.keysService       = keysService;
 }
 public BlockUsersRequestHandler(Request request, ClientConnection clientConnection, INodeNoticeService nodeNoticeService, IUpdateUsersService updateUsersService)
 {
     this.request            = (BlockUsersRequest)request;
     this.clientConnection   = clientConnection;
     this.nodeNoticeService  = nodeNoticeService;
     this.updateUsersService = updateUsersService;
 }
Esempio n. 4
0
 public DeleteAllMessagesRequestHandler(Request request, ClientConnection clientConnection, IDeleteMessagesService deleteMessagesService, INodeNoticeService nodeNoticeService)
 {
     this.request               = (DeleteAllMessagesRequest)request;
     this.clientConnection      = clientConnection;
     this.deleteMessagesService = deleteMessagesService;
     this.nodeNoticeService     = nodeNoticeService;
 }
 public ClientDataReceiver(ClientConnection client, IAppServiceProvider serviceProvider) : base(serviceProvider)
 {
     socket             = client.ClientSocket;
     connectionsService = serviceProvider.ConnectionsService;
     nodeNoticeService  = serviceProvider.NodeNoticeService;
     nodeRequestSender  = serviceProvider.NodeRequestSender;
     this.client        = client;
 }
Esempio n. 6
0
 public FilesController(IFileStorage fileStorage, INodeNoticeService nodeNoticeService, IConnectionsService connectionsService, IFilesService filesService, INodesService nodesService, INodeRequestSender nodeRequestSender)
 {
     this.fileStorage        = fileStorage;
     this.nodeNoticeService  = nodeNoticeService;
     this.connectionsService = connectionsService;
     this.filesService       = filesService;
     this.nodesService       = nodesService;
     this.nodeRequestSender  = nodeRequestSender;
 }
Esempio n. 7
0
 public NodeRequestSender(
     IConnectionsService connectionsService,
     IFilesService filesService,
     INodesService nodesService,
     INodeNoticeService nodeNoticeService)
 {
     this.connectionsService = connectionsService;
     this.nodesService       = nodesService;
     this.filesService       = filesService;
     this.nodeNoticeService  = nodeNoticeService;
 }
 public ConversationsNoticeService(IAppServiceProvider appServiceProvider)
 {
     this.connectionsService       = appServiceProvider.ConnectionsService;
     this.nodeNoticeService        = appServiceProvider.NodeNoticeService;
     this.pushNotificationsService = appServiceProvider.PushNotificationsService;
     this.loadChatsService         = appServiceProvider.LoadChatsService;
     this.loadChannelsService      = appServiceProvider.LoadChannelsService;
     this.loadDialogsService       = appServiceProvider.LoadDialogsService;
     this.pendingMessagesService   = appServiceProvider.PendingMessagesService;
     this.loadUsersService         = appServiceProvider.LoadUsersService;
     this.privacyService           = appServiceProvider.PrivacyService;
 }
Esempio n. 9
0
 public EditChannelUsersRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     ILoadChannelsService loadChannelsService,
     IUpdateChannelsService updateChannelsService)
 {
     this.request               = (EditChannelUsersRequest)request;
     this.clientConnection      = clientConnection;
     this.nodeNoticeService     = nodeNoticeService;
     this.loadChannelsService   = loadChannelsService;
     this.updateChannelsService = updateChannelsService;
 }
Esempio n. 10
0
 public NewChatRequestHandler(
     Request request,
     ClientConnection current,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ICreateChatsService createChatsService)
 {
     this.request                    = (NewChatsRequest)request;
     this.clientConnection           = current;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.createChatsService         = createChatsService;
 }
 public NewChatsNoticeHandler(
     CommunicationObject @object,
     NodeConnection nodeConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ICrossNodeService crossNodeService)
 {
     notice = (CreateOrEditChatsNodeNotice)@object;
     this.nodeConnection             = nodeConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.crossNodeService           = crossNodeService;
 }
Esempio n. 12
0
 public ConnectRequestHandler(
     CommunicationObject request,
     NodeConnection node,
     IConnectionsService connectionsService,
     INodesService nodesService,
     INodeNoticeService nodeNoticeService)
 {
     this.request            = (ConnectNodeRequest)request;
     this.connectionsService = connectionsService;
     this.nodesService       = nodesService;
     this.nodeNoticeService  = nodeNoticeService;
     nodeConnection          = node;
 }
 public DeleteUserRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IDeleteUsersService deleteUsersService,
     IVerificationCodesService verificationCodesService,
     IConnectionsService connectionsService)
 {
     this.request                  = (DeleteUserRequest)request;
     this.clientConnection         = clientConnection;
     this.nodeNoticeService        = nodeNoticeService;
     this.deleteUsersService       = deleteUsersService;
     this.verificationCodesService = verificationCodesService;
     this.connectionsService       = connectionsService;
 }
Esempio n. 14
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;
 }
Esempio n. 15
0
 public CreateChannelRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadChannelsService loadChannelsService,
     ICreateChannelsService createChannelsService)
 {
     this.request                    = (CreateChannelRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadChannelsService        = loadChannelsService;
     this.createChannelsService      = createChannelsService;
 }
Esempio n. 16
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;
 }
Esempio n. 17
0
 public UsersController(
     IConnectionsService connectionsService,
     INodeNoticeService nodeNoticeService,
     ILoadUsersService loadUsersService,
     ICreateUsersService createUsersService,
     IUpdateUsersService updateUsersService,
     IQRCodesService codesService)
 {
     _connectionsService = connectionsService;
     _nodeNoticeService  = nodeNoticeService;
     _loadUsersService   = loadUsersService;
     _createUsersService = createUsersService;
     _updateUsersService = updateUsersService;
     _qrCodeService      = codesService;
 }
Esempio n. 18
0
 public PollingRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     ILoadChatsService loadChatsService,
     IPollsService pollsService,
     ILoadChannelsService loadChannelsService)
 {
     this.request             = (PollingRequest)request;
     this.clientConnection    = clientConnection;
     this.nodeNoticeService   = nodeNoticeService;
     this.loadChatsService    = loadChatsService;
     this.pollsService        = pollsService;
     this.loadChannelsService = loadChannelsService;
 }
 public EditChannelRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadChannelsService loadChannelsService,
     IUpdateChannelsService updateChannelsService,
     ISystemMessagesService systemMessagesService)
 {
     this.request                    = (EditChannelRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadChannelsService        = loadChannelsService;
     this.updateChannelsService      = updateChannelsService;
     this.systemMessagesService      = systemMessagesService;
 }
Esempio n. 20
0
 public NewUserRequestHandler(
     Request request,
     ClientConnection clientConn,
     INodeNoticeService nodeNoticeService,
     ICreateUsersService createUsersService,
     ITokensService tokensService,
     IVerificationCodesService verificationCodesService,
     ILoadUsersService loadUsersService)
 {
     this.request                  = (NewUserRequest)request;
     this.clientConn               = clientConn;
     this.nodeNoticeService        = nodeNoticeService;
     this.createUsersService       = createUsersService;
     this.tokensService            = tokensService;
     this.verificationCodesService = verificationCodesService;
     this.loadUsersService         = loadUsersService;
 }
Esempio n. 21
0
 public ConversationActionRequestHandler(
     Request request,
     ClientConnection clientConnection,
     IConversationsService conversationsService,
     IConversationsNoticeService conversationsNoticeService,
     INodeNoticeService nodeNoticeService,
     ILoadDialogsService loadDialogsService,
     ISystemMessagesService systemMessagesService)
 {
     this.request                    = (ConversationActionRequest)request;
     this.clientConnection           = clientConnection;
     this.conversationsService       = conversationsService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.nodeNoticeService          = nodeNoticeService;
     this.loadDialogsService         = loadDialogsService;
     this.systemMessagesService      = systemMessagesService;
 }
 public EditChatsNoticeHandler(
     CommunicationObject @object,
     NodeConnection nodeConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     ILoadChatsService loadChatsService,
     ICrossNodeService crossNodeService,
     ISystemMessagesService systemMessagesService)
 {
     notice = (CreateOrEditChatsNodeNotice)@object;
     this.nodeConnection             = nodeConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.loadChatsService           = loadChatsService;
     this.crossNodeService           = crossNodeService;
     this.systemMessagesService      = systemMessagesService;
 }
Esempio n. 23
0
 public SendMessagesRequestHandler(
     Request request,
     ClientConnection current,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IAttachmentsService attachmentsService,
     ICreateMessagesService createMessagesService,
     ILoadDialogsService loadDialogsService)
 {
     this.request                    = (SendMessagesRequest)request;
     userId                          = current.UserId ?? 0;
     this.current                    = current;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.attachmentsService         = attachmentsService;
     this.createMessagesService      = createMessagesService;
     this.loadDialogsService         = loadDialogsService;
 }
 public UserMigrationController(
     INodeNoticeService nodeNoticeService,
     IConnectionsService connectionsService,
     INoticeService noticeService,
     IChangeNodeOperationsService changeNodeOperationsService,
     ILoadUsersService loadUsersService,
     IUpdateUsersService updateUsersService,
     IDeleteUsersService deleteUsersService,
     INodeRequestSender nodeRequestSender)
 {
     this.nodeNoticeService           = nodeNoticeService;
     this.connectionsService          = connectionsService;
     this.noticeService               = noticeService;
     this.changeNodeOperationsService = changeNodeOperationsService;
     this.loadUsersService            = loadUsersService;
     this.updateUsersService          = updateUsersService;
     this.deleteUsersService          = deleteUsersService;
     this.nodeRequestSender           = nodeRequestSender;
 }
 public AddUsersToChannelsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateChannelsService updateChannelsService,
     ILoadChannelsService loadChannelsService,
     IConnectionsService connectionsService,
     INodeRequestSender nodeRequestSender)
 {
     this.request                    = (AddUsersToChannelsRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChannelsService      = updateChannelsService;
     this.loadChannelsService        = loadChannelsService;
     this.connectionsService         = connectionsService;
     this.nodeRequestSender          = nodeRequestSender;
 }
 public AddUserChatsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IUpdateChatsService updateChatsService,
     ILoadChatsService loadChatsService,
     INodeRequestSender nodeRequestSender,
     IConnectionsService connectionsService,
     ISystemMessagesService systemMessagesService)
 {
     this.request                    = (AddUsersChatsRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.updateChatsService         = updateChatsService;
     this.loadChatsService           = loadChatsService;
     this.nodeRequestSender          = nodeRequestSender;
     this.connectionsService         = connectionsService;
     this.systemMessagesService      = systemMessagesService;
 }
Esempio n. 27
0
 public DeleteMessagesRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     IConversationsNoticeService conversationsNoticeService,
     IDeleteMessagesService deleteMessagesService,
     ILoadChatsService loadChatsService,
     IPendingMessagesService pendingMessagesService,
     ILoadChannelsService loadChannelsService,
     ILoadDialogsService loadDialogsService)
 {
     this.request                    = (DeleteMessagesRequest)request;
     this.clientConnection           = clientConnection;
     this.nodeNoticeService          = nodeNoticeService;
     this.conversationsNoticeService = conversationsNoticeService;
     this.deleteMessagesService      = deleteMessagesService;
     this.loadChatsService           = loadChatsService;
     this.pendingMessagesService     = pendingMessagesService;
     this.loadChannelsService        = loadChannelsService;
     this.loadDialogsService         = loadDialogsService;
 }
Esempio n. 28
0
 public DeleteConversationsRequestHandler(
     Request request,
     ClientConnection clientConnection,
     INodeNoticeService nodeNoticeService,
     ILoadChatsService loadChatsService,
     IDeleteChatsService deleteChatsService,
     ILoadDialogsService loadDialogsService,
     IDeleteDialogsService deleteDialogsService,
     ILoadChannelsService loadChannelsService,
     IDeleteChannelsService deleteChannelsService)
 {
     this.request               = (DeleteConversationsRequest)request;
     this.clientConnection      = clientConnection;
     this.nodeNoticeService     = nodeNoticeService;
     this.loadChatsService      = loadChatsService;
     this.deleteChatsService    = deleteChatsService;
     this.loadDialogsService    = loadDialogsService;
     this.deleteDialogsService  = deleteDialogsService;
     this.loadChannelsService   = loadChannelsService;
     this.deleteChannelsService = deleteChannelsService;
 }