public DashboardController(
     IAppointmentsService appointmentsService,
     IChatsService chatsService)
 {
     this.appointmentsService = appointmentsService;
     this.chatsService        = chatsService;
 }
 public MessagesProcessor(
     IParticipantsService participantsService,
     IChatsService chatsService)
 {
     this.participantsService = participantsService;
     this.chatsService        = chatsService;
 }
 public ChatsController(
     IChatsService chatsService,
     UserManager <ApplicationUser> userManager)
 {
     this.chatsService = chatsService;
     this.userManager  = userManager;
 }
Exemple #4
0
 public ChatsHub(IChatsService <TPersonalizedChatsSummary, TPersonalizedChatCollection, TPersonalizedChat, TChat, TChatInfo, TChatParticipantCollection, TChatParticipant,
                                TParticipationCandidates, TParticipationCandidateCollection, TParticipationCandidate, TChatUser, TChatMessageInfo, TTextMessage, TQuoteMessage,
                                TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage,
                                TChatFilter, TChatUserFilter, TMessageFilter, TPagedResult, TPagingOptions> chatsService)
 {
     ChatsService = chatsService;
 }
Exemple #5
0
 public MessagesService(IUnitOfWork unitOfWork, UserManager <User> userManager, IHttpContextAccessor contextAccessor, IChatsService chatsService)
 {
     _unitOfWork      = unitOfWork;
     _userManager     = userManager;
     _contextAccessor = contextAccessor;
     _chatsService    = chatsService;
 }
Exemple #6
0
 public ChatHub(
     UserManager <ApplicationUser> userManager,
     IChatsService chatService)
 {
     this.userManager = userManager;
     this.chatService = chatService;
 }
Exemple #7
0
 public PingCommand(
     ChatMessage commandMessage,
     IParticipantsService participantsService,
     IChatsService chatsService)
     : base(commandMessage, participantsService)
 {
     this.chatsService = chatsService;
 }
Exemple #8
0
 public ChatsHub(
     IChatsService chatsService,
     IMessagesService messagesService,
     IEmailProvider emailProvider)
 {
     _emailProvider   = emailProvider;
     _chatsService    = chatsService;
     _messagesService = messagesService;
 }
 public UsersController(
     IUsersService usersService,
     IEmailService emailService,
     IChatsService chatsService,
     IStudentTutorsService studentTutorsService)
 {
     _usersService         = usersService;
     _emailService         = emailService;
     _chatsService         = chatsService;
     _studentTutorsService = studentTutorsService;
 }
Exemple #10
0
        public DialogsViewModel(IMvxNavigationService navigationService, IChatsService chatsService)
        {
            _navigationService = navigationService;
            _chatsService      = chatsService;
            var service = Mvx.IoCProvider.Resolve <IMessagingService>();

            if (service != null)
            {
                service.MessageReceived += OnMessageReceived;
            }
        }
Exemple #11
0
        public ChatViewModel(IChatsService chatsService, IPermissionsService permissionsService)
        {
            _chatsService       = chatsService;
            _permissionsService = permissionsService;

            var service = Mvx.IoCProvider.Resolve <IMessagingService>();

            if (service != null)
            {
                service.MessageReceived += OnMessageReceived;
            }
        }
        public ChatsServiceTests()
        {
            var setup = new UnitTestSetup();

            _userManager = setup.UserManager;
            _context     = setup.Context;

            _currentUserServiceMock = new Mock <ICurrentUserService>();
            _currentUserServiceMock
            .Setup(s => s.GetUserId())
            .Returns(setup.UserManager.Users.First(u => u.Email == "*****@*****.**").Id);

            _chatsService = new ChatsService(
                new ChatMessagesRepository(setup.Context),
                _currentUserServiceMock.Object,
                setup.UserManager,
                new TimeService(),
                new Mock <IHubsService>().Object
                );
        }
Exemple #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamsConversationActivity"/> class.
 /// </summary>
 /// <param name="conversationService">The create user conversation service.</param>
 /// <param name="sentNotificationDataRepository">The sent notification data repository.</param>
 /// <param name="userDataRepository">The user data repository.</param>
 /// <param name="notificationDataRepository">Notification data entity repository.</param>
 /// <param name="appManagerService">App manager service.</param>
 /// <param name="chatsService">Chats service.</param>
 /// <param name="appSettingsService">App Settings service.</param>
 /// <param name="options">Teams conversation options.</param>
 /// <param name="localizer">Localization service.</param>
 public TeamsConversationActivity(
     IConversationService conversationService,
     ISentNotificationDataRepository sentNotificationDataRepository,
     IUserDataRepository userDataRepository,
     INotificationDataRepository notificationDataRepository,
     IAppManagerService appManagerService,
     IChatsService chatsService,
     IAppSettingsService appSettingsService,
     IOptions <TeamsConversationOptions> options,
     IStringLocalizer <Strings> localizer)
 {
     this.conversationService            = conversationService ?? throw new ArgumentNullException(nameof(conversationService));
     this.sentNotificationDataRepository = sentNotificationDataRepository ?? throw new ArgumentNullException(nameof(sentNotificationDataRepository));
     this.userDataRepository             = userDataRepository ?? throw new ArgumentNullException(nameof(userDataRepository));
     this.notificationDataRepository     = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.appManagerService  = appManagerService ?? throw new ArgumentNullException(nameof(appManagerService));
     this.chatsService       = chatsService ?? throw new ArgumentNullException(nameof(chatsService));
     this.appSettingsService = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService));
     this.options            = options?.Value ?? throw new ArgumentNullException(nameof(options));
     this.localizer          = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
Exemple #14
0
 public ChatsHub(IChatsService <PersonalizedChatsSummary, List <PersonalizedChat>, PersonalizedChat, Chat, ChatInfo, List <ChatParticipant>, ChatParticipant, ParticipationCandidates, List <ParticipationCandidate>, ParticipationCandidate, ChatUser, ChatMessageInfo, TextMessage, QuoteMessage, List <MessageAttachment>, MessageAttachment, List <ChatRefMessage>, ChatRefMessage, List <ContactMessage>, ContactMessage, ChatFilter <ChatUserFilter, MessageFilter>, ChatUserFilter, MessageFilter, PagedResult <List <PersonalizedChat>, PersonalizedChat>, PagingOptions> chatsService) : base(chatsService)
 {
 }
Exemple #15
0
 public ChatsServiceTests()
 {
     _sut = new ChatsService(_chatHubMock.Object, _unitOfWorkMock.Object, _mapper.Object);
 }
Exemple #16
0
 public ChatsController(IChatsService service)
 {
     _chatsService = service;
 }
Exemple #17
0
 public ChatController(IMessagesService messagesService, IChatsService chatsService)
 {
     _messagesService = messagesService;
     _chatsService    = chatsService;
 }
Exemple #18
0
 public ChatHub(IChatsService chatsService)
 {
     this.chatsService = chatsService;
 }
 public ChatsController(
     IChatsService chatsService)
 {
     this.chatsService = chatsService;
 }
 public SameMessageAuthorAuthorizationHandler(UserManager <User> userManager, IChatsService chatsService)
 {
     _userManager = userManager;
 }
Exemple #21
0
 public MessagesController(IMessagesService messagesService, IAuthorizationService authorizationService, IChatsService chatsService)
 {
     _messagesService      = messagesService;
     _authorizationService = authorizationService;
     _chatsService         = chatsService;
 }
 public ChatAdminAuthorizationHandler(UserManager <User> userManager, IChatsService chatsService)
 {
     _userManager  = userManager;
     _chatsService = chatsService;
 }
Exemple #23
0
 public DotChatFacade(IChatsService <TPersonalizedChatsSummary, TPersonalizedChatCollection, TPersonalizedChat, TChat, TChatInfo, TChatParticipantCollection, TChatParticipant, TParticipationCandidates, TParticipationCandidateCollection, TParticipationCandidate, TChatUser, TChatMessageInfo, TTextMessage, TQuoteMessage, TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage, TChatFilter, TChatUserFilter, TMessageFilter, TChatsPagedResult, TPagingOptions> chats, IChatParticipantsService <TParticipationCandidateCollection, TParticipationCandidate> chatParticipants, IChatMessagesService <TChatInfo, TChatUser, TChatMessageCollection, TChatMessage, TChatMessageInfo, TTextMessage, TQuoteMessage, TMessageAttachmentCollection, TMessageAttachment, TChatRefMessageCollection, TChatRefMessage, TContactMessageCollection, TContactMessage, TMessageFilter, TChatMessagesPagedResult, TPagingOptions> chatMessages)
 {
     Chats            = chats;
     ChatParticipants = chatParticipants;
     ChatMessages     = chatMessages;
 }
Exemple #24
0
 public ChatController(IChatsService chatsService)
 {
     _chatsService = chatsService;
 }