Example #1
0
 public ConversationService(IConversationRepository conversationRepository,
                            IUserRepository userRepository, IMapper mapper)
 {
     _conversationRepository = conversationRepository;
     _userRepository         = userRepository;
     _mapper = mapper;
 }
Example #2
0
 public MessageService(IMessageRepository messageRepository, IUserRepository userRepository,
                       IConversationRepository conversationRepository)
 {
     _messageRepository      = messageRepository;
     _userRepository         = userRepository;
     _conversationRepository = conversationRepository;
 }
Example #3
0
 public UserTasks(
     IInterestTasks interestTasks,
     IImageProcessor imageProcessor,
     IFileUploadService fileUploadService,
     IWebContentService webContentService,
     IFeedFinder feedFinder,
     IUserAuthentication userAuthentication,
     IConversationRepository conversationRepository,
     IEmailService emailService,
     ILocationService locationService,
     IUserRepository userRepository,
     IPageParsingService pageParsingService, IUserInterestTasks userInterestTasks)
 {
     _interestTasks = interestTasks;
     _imageProcessor = imageProcessor;
     _fileUploadService = fileUploadService;
     _webContentService = webContentService;
     _feedFinder = feedFinder;
     _userAuthentication = userAuthentication;
     _conversationRepository = conversationRepository;
     _emailService = emailService;
     _locationService = locationService;
     _userRepository = userRepository;
     _pageParsingService = pageParsingService;
     _userInterestTasks = userInterestTasks;
 }
Example #4
0
 public MessageService(IMessageRepository repository, IConversationRepository convRepository, IIdentityService identityService, INotificationService notifService)
 {
     _repository      = repository;
     _convRepository  = convRepository;
     _identityService = identityService;
     _notifService    = notifService;
 }
Example #5
0
 public ConversationController(
     IConversationRepository conversationRepository,
     UserManager <UserEntity> userManager
     ) : base(userManager)
 {
     this.conversationRepository = conversationRepository;
 }
Example #6
0
 public ConversationService(IConversationItemTypeRepository conversationItemTypeRepository,
                            IMapper mapper, IConversationRepository conversationRepository,
                            IHttpContextAccessor httpContextAccessor,
                            IUserRepository userRepository,
                            IClientGroupRepository clientGroupRepository,
                            IMessageRepository messageRepository,
                            IMessageTextRepository messagTextRepository,
                            IMessageImageRepository messageImageRepository,
                            IMessageMultiMediaRepository messageMultiMediaRepository,
                            IMessagePostThumbnailRepository messagePostThumbnailRepository,
                            IMessageConversationActivityRepository messageConversationActivityRepository)
 {
     this.conversationItemTypeRepository = conversationItemTypeRepository;
     this.mapper = mapper;
     this.conversationRepository                = conversationRepository;
     this.httpContextAccessor                   = httpContextAccessor;
     this.userRepository                        = userRepository;
     this.clientGroupRepository                 = clientGroupRepository;
     this.messageRepository                     = messageRepository;
     this.messagTextRepository                  = messagTextRepository;
     this.messageImageRepository                = messageImageRepository;
     this.messageMultiMediaRepository           = messageMultiMediaRepository;
     this.messagePostThumbnailRepository        = messagePostThumbnailRepository;
     this.messageConversationActivityRepository = messageConversationActivityRepository;
 }
Example #7
0
 public ConversationService(IConversationRepository conversationRepo, IMessageRepository messageRepo, IMapper mapper, IUserInformationRepository userInformationRepo)
 {
     _conversationRepo    = conversationRepo;
     _messageRepo         = messageRepo;
     _mapper              = mapper;
     _userInformationRepo = userInformationRepo;
 }
Example #8
0
 public QuestionController(ILogger <FeedController> logger, UserManager <ApplicationUser> userManager,
                           IConversationRepository conversationRepository)
 {
     _logger                 = logger;
     _userManager            = userManager;
     _conversationRepository = conversationRepository;
 }
 public ChatService(
     IChatDataProvider chatDataProvider,
     IUsersRepository usersRepository,
     IUsersConversationsRepository usersConversationsRepository,
     IConversationRepository conversationRepository,
     ILastMessagesRepository lastMessagesRepository,
     IDhPublicKeysRepository dh,
     IChatRolesRepository rolesRepository,
     FilesService filesService,
     UnitOfWork unitOfWork,
     BansService bansService,
     MessagesService messagesService,
     IComparer <Shared.DTO.Conversations.Chat> chatComparer,
     IRolesRepository staticRolesRepo)
 {
     this.chatDataProvider             = chatDataProvider;
     this.usersRepository              = usersRepository;
     this.usersConversationsRepository = usersConversationsRepository;
     this.conversationRepository       = conversationRepository;
     this.lastMessagesRepository       = lastMessagesRepository;
     publicKeys           = dh;
     this.rolesRepository = rolesRepository;
     this.filesService    = filesService;
     this.unitOfWork      = unitOfWork;
     this.bansService     = bansService;
     this.messagesService = messagesService;
     this.chatComparer    = chatComparer;
     this.staticRolesRepo = staticRolesRepo;
 }
Example #10
0
 public ConversationService(IConversationRepository conversationRepository, IMessageRepository messageRepository, IConversationParser conversationParser,
                            IConversationComparer conversationComparer)
 {
     _conversationRepository = conversationRepository;
     _messageRepository      = messageRepository;
     _conversationParser     = conversationParser;
     _conversationComparer   = conversationComparer;
 }
Example #11
0
 public ConversationHub(IQueryContext queryContext, ICommandContext commandContext, IUserSummaryRepository userSummaryRepository, IConversationRepository conversationRepository, IConversationBoundedContext conversationBoundedContext)
 {
     this._queryContext               = queryContext;
     this._commandContext             = commandContext;
     this._userSummaryRepository      = userSummaryRepository;
     this._conversationRepository     = conversationRepository;
     this._conversationBoundedContext = conversationBoundedContext;
 }
 public CreatePresentationCommand(
     IPresentationRepository presentationRepository,
     IConversationRepository conversations
     )
 {
     this.presentationRepository = presentationRepository;
     this.conversations          = conversations;
 }
Example #13
0
 public ChatService(IMessageRepository messageRepository, IConversationRepository conversationRepository,
                    IConversationUserRepository conversationUserRepository, IUserRepository userRepository)
 {
     this.messageRepository          = messageRepository;
     this.conversationRepository     = conversationRepository;
     this.conversationUserRepository = conversationUserRepository;
     this.userRepository             = userRepository;
 }
Example #14
0
 public Move(StatefulServiceContext context,
             IConversationRepository conversationRepository,
             IReplyQueueService replyQueueService)
     : base(context)
 {
     _conversationRepository = conversationRepository;
     _replyQueueService      = replyQueueService;
 }
 public ConversationsController(IConversationBoundedContext conversationBoundedContext,
                                IConversationRepository conversationRepository,
                                IMessageRepository messageRepository)
 {
     this._conversationBoundedContext = conversationBoundedContext;
     this._conversationRepository     = conversationRepository;
     this._messageRepository          = messageRepository;
 }
Example #16
0
 public ConversationService(IConversationRepository conversationRepository,
                            IConversationMemberRepository conversationMemberRepository,
                            IUserRepository usersRepository)
 {
     _conversationRepository       = conversationRepository;
     _conversationMemberRepository = conversationMemberRepository;
     _usersRepository = usersRepository;
 }
Example #17
0
        public ChatHub(IOptions <AppSettings> options)
        {
            var dbContext = new MongoDbContext(options);

            _conversationRepository = new ConversationRepository(options);
            _userRepository         = new UserRepository(options);
            _messageRepository      = new MessageRepository(options);
        }
Example #18
0
 public PartnershipService(IPartnershipRepository partnershipRepo, IMapper mapper, IUserInformationRepository userInformationRepo, IUnitOfWork unitOfWork, IConversationRepository conversationRepo)
 {
     _partnershipRepo     = partnershipRepo;
     _userInformationRepo = userInformationRepo;
     _conversationRepo    = conversationRepo;
     _unitOfWork          = unitOfWork;
     _mapper = mapper;
 }
 public SendSmsCommandHandler(
     IConversationRepository conversationRepository,
     INotificationClient notificationClient,
     ISettingService settingService)
 {
     _conversationRepository = conversationRepository;
     _notificationClient     = notificationClient;
     _settingService         = settingService;
 }
 public ConversationService(
     IConversationRepository conversationRepository,
     IMusicRepository musicRepository,
     IPlaylistRepository playlistRepository)
 {
     _conversationRepository = conversationRepository;
     _musicRepository = musicRepository;
     _playlistRepository = playlistRepository;
 }
Example #21
0
 public ConversationManager(
     IUserRepository userRepo,
     IConversationRepository conversationRepo,
     IMessageRepository messageRepo)
 {
     _userRepo         = userRepo;
     _conversationRepo = conversationRepo;
     _messageRepo      = messageRepo;
 }
Example #22
0
 public SendMessageHandler(
     IConversationRepository conversationRepository,
     IMessageRepository messageRepository,
     IClock clock)
 {
     _conversationRepository = conversationRepository;
     _messageRepository      = messageRepository;
     _clock = clock;
 }
 public ExampleInteractor(
     IConversationRepository conversationRepository, 
     IConversationFactory conversationFactory,
     IRequestMapper requestMapper)
 {
     _conversationRepository = conversationRepository;
     _conversationFactory = conversationFactory;
     _requestMapper = requestMapper;
 }
 public DeckController(
     IRetrievePresentationToViewQuery retrievePresentationToViewQuery,
     IConversationRepository conversations,
     ICurrentSchema currentSchema
     )
 {
     this.retrievePresentationToViewQuery = retrievePresentationToViewQuery;
     this.conversations = conversations;
     this.currentSchema = currentSchema;
 }
Example #25
0
 public ConversationsController(
     IConversationRepository conversationRepository,
     IUserRepository userRepository,
     IMapper mapper
     )
 {
     _conversationRepository = conversationRepository;
     _userRepository         = userRepository;
     _mapper = mapper;
 }
 public ConversationService(IConversationRepository conversationRepository, IParticipantRepository participantRepository,
                            IUnitOfWork unitOfWork, UserManager <ApplicationUser> userManager,
                            IHttpContextAccessor httpContextAccessor)
 {
     _conversationRepository = conversationRepository;
     _participantRepository  = participantRepository;
     _unitOfWork             = unitOfWork;
     _userManager            = userManager;
     _httpContextAccessor    = httpContextAccessor;
 }
Example #27
0
 public MessageController(UserManager <AppUser> userManager,
                          SignInManager <AppUser> signInManager,
                          IMessageRepository r, IConversationRepository cr, IBookRepository br)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     repo           = r;
     convoRepo      = cr;
     bookRepo       = br;
 }
Example #28
0
 public MessageController(
     UserManager <ApplicationUser> userManager,
     IConversationRepository conversationRepository,
     IConversationMessageRepository conversationMessageRepository,
     IConversationInstanceRepository conversationInstanceRepository)
 {
     _userManager                    = userManager;
     _conversationRepository         = conversationRepository;
     _conversationMessageRepository  = conversationMessageRepository;
     _conversationInstanceRepository = conversationInstanceRepository;
 }
        public Conversation(IServiceProvider services, ICurrentSchema currentSchema, IUserRepository users, IConversationRepository conversations)
        {
            var contextAccess = services.GetService <IHttpContextAccessor>();

            httpContext = contextAccess.HttpContext;

            this.services      = services;
            this.currentSchema = currentSchema;
            this.users         = users;
            this.conversations = conversations;
        }
Example #30
0
 public UploadService(
     IMusicRepository musicRepository,
     IPlaylistRepository playlistRepository,
     IUserRepository userRepository,
     IConversationRepository conversationRepository)
 {
     _musicRepository = musicRepository;
     _playlistRepository = playlistRepository;
     _userRepository = userRepository;
     _conversationRepository = conversationRepository;
 }
Example #31
0
 public UnitOfWork(
     ApplicationDbContext context,
     IUserRepository userRepository,
     IMessageRepository messageRepository,
     IConversationRepository conversationRepository)
 {
     _context               = context;
     UserRepository         = userRepository;
     MessageRepository      = messageRepository;
     ConversationRepository = conversationRepository;
 }
        public ConversationsViewModel(IConversationRepository convoRepo)
        {
            _convoRepo = convoRepo;
            Conversations = new ObservableCollection<ConversationViewModel>();

            Messenger.Default.Register<ConversationClicked>(this, (conversationClickedMessage) =>
            {
                OnConversationSelected(conversationClickedMessage.ConversationId);
            });

            GetAllConversations();
        }
Example #33
0
 public ConversationHub(
     IConversationRepository conversationRepository,
     IMessageRepository messageRepository,
     IUserConnectionRepository userConnectionRepository,
     UserManager <UserEntity> userManager
     )
 {
     this.userConnectionRepository = userConnectionRepository;
     this.userManager            = userManager;
     this.messageRepository      = messageRepository;
     this.conversationRepository = conversationRepository;
 }
Example #34
0
        public ConversationsViewModel(IConversationRepository convoRepo)
        {
            _convoRepo    = convoRepo;
            Conversations = new ObservableCollection <ConversationViewModel>();

            Messenger.Default.Register <ConversationClicked>(this, (conversationClickedMessage) =>
            {
                OnConversationSelected(conversationClickedMessage.ConversationId);
            });

            GetAllConversations();
        }
 public MessagesController(
     IMessageRepository messageRepository,
     IConversationRepository conversationRepository,
     IUserRepository userRepository,
     IMapper mapper
     )
 {
     _messageRepository      = messageRepository;
     _conversationRepository = conversationRepository;
     _userRepository         = userRepository;
     _mapper = mapper;
 }
Example #36
0
 public UploadService(
     IMusicRepository musicRepository,
     IPlaylistRepository playlistRepository,
     IUserRepository userRepository,
     IConversationRepository conversationRepository,
     IRecognitionService recognitionService)
 {
     _musicRepository = musicRepository;
     _playlistRepository = playlistRepository;
     _userRepository = userRepository;
     _conversationRepository = conversationRepository;
     _recognitionService = recognitionService;
 }
 public SelectedConversationViewModel(IConversationRepository convoRepo)
 {
     _convoRepo = convoRepo;
     Messages = new ObservableCollection<MessageViewModel>();
     Messenger.Default.Register<ConversationSelected>(this, ChangeSelectedConversation);
 }