public ConversationChooser(IConversationsRepository respository, IMessageParser messageParser, IConversationUsersRepository conversationUsersRepository, IConsole console)
 {
     this.respository   = respository;
     this.messageParser = messageParser;
     this.conversationUsersRepository = conversationUsersRepository;
     this.console = console;
 }
 public ConversationsManager(IUnitOfWork unitOfWork,
                             IConversationsRepository conversationsRepository,
                             IConversationRepliesRepository conversationRepliesRepository)
     : base(unitOfWork)
 {
     this.conversationsRepository       = conversationsRepository;
     this.conversationRepliesRepository = conversationRepliesRepository;
 }
 public StoreMessageTextValidationUseCase(
     IStoreMessageTextUseCase useCase,
     IConversationsRepository conversationsRepository,
     IIdentityService identityService)
 {
     _useCase = useCase;
     _conversationsRepository = conversationsRepository;
 }
Пример #4
0
 /// <summary>
 /// Конструктор менеджера диалогов
 /// </summary>
 /// <param name="unitOfWork">Обработчик единицы работы</param>
 /// <param name="conversationsRepository">Хранилище диалогов</param>
 /// <param name="conversationRepliesRepository">Хранилиже ответов в диалогах</param>
 public ConversationsManager(IUnitOfWork unitOfWork,
                             IConversationsRepository conversationsRepository,
                             IConversationRepliesRepository conversationRepliesRepository)
     : base(unitOfWork) // Передаём обработчик единицы работы в базовый класс
 {
     // Задаём хранидище диалогов
     this.conversationsRepository = conversationsRepository;
     // Задаём хранилиже ответов в диалогах
     this.conversationRepliesRepository = conversationRepliesRepository;
 }
 public CreateConversationUseCase(
     IUnitOfWork unitOfWork,
     IConversationsRepository conversationsRepository,
     IParticipantRepository participantRepository,
     IConversationsFactory conversationsFactory)
 {
     _unitOfWork             = unitOfWork;
     _conversationRepository = conversationsRepository;
     _participantRepository  = participantRepository;
     _conversationsFactory   = conversationsFactory;
 }
Пример #6
0
 public UserStatisticsActionHandler(
     IConversationsRepository conversationsRepository,
     IConversationUsersRepository conversationUsersRepository,
     IMessageParser messageParser,
     IEqualityComparer <User> userEqualityComparer,
     IConsole console)
 {
     this.conversationsRepository     = conversationsRepository;
     this.conversationUsersRepository = conversationUsersRepository;
     this.messageParser        = messageParser;
     this.userEqualityComparer = userEqualityComparer;
     this.console = console;
 }
Пример #7
0
 public UnitOfWork(DatabaseContext context,
                   IUsersRepository users,
                   IInvitationsRepository invitations,
                   IFriendshipsRepository friendships,
                   IInformationsRepository informations,
                   IQuizzesRepository quizes,
                   IQuizQuestionsRepository quizQuestions,
                   IQuizAnswersRepository quizAnswers,
                   IQuizScoresRepository quizScores,
                   IFilesRepository files,
                   IFilmWatchingsRepository filmWatchings,
                   IFilmsRepository films,
                   IFilmPeopleRepository filmPeople,
                   IPersonMarksRepository personMarks,
                   IInformationCommentsRepository informationComments,
                   IForumThreadsRepository forumThreads,
                   IForumThreadCommentsRepository forumThreadComments,
                   IMessagesRepository messages,
                   ISignalRConnectionsRepository signalRConnections,
                   IMessagesReadingsRepository messagesReadings,
                   IConversationsRepository conversations,
                   IInvitationNotificationsRepository invitationNotifications,
                   INotificationsReadingsRepository notificationsReadings,
                   IPeopleInRolesRepository peopleInRoles)
 {
     Context                 = context;
     Users                   = users;
     Friendships             = friendships;
     Invitations             = invitations;
     Informations            = informations;
     Quizzes                 = quizes;
     QuizQuestions           = quizQuestions;
     QuizAnswers             = quizAnswers;
     QuizScores              = quizScores;
     Files                   = files;
     FilmWatchings           = filmWatchings;
     Films                   = films;
     FilmPeople              = filmPeople;
     PersonMarks             = personMarks;
     InformationComments     = informationComments;
     ForumThreads            = forumThreads;
     ForumThreadComments     = forumThreadComments;
     Messages                = messages;
     SignalRConnections      = signalRConnections;
     MessagesReadings        = messagesReadings;
     Conversations           = conversations;
     InvitationNotifications = invitationNotifications;
     NotificationsReadings   = notificationsReadings;
     PeopleInRoles           = peopleInRoles;
 }
Пример #8
0
 public ConversationsService(IConversationsRepository conversationsRepository)
 {
     _conversationsRepository = conversationsRepository;
 }
Пример #9
0
 public DeleteConversationHandler(IConversationsRepository conversationsRepository)
 {
     this.conversationsRepository = conversationsRepository;
 }
 public CreateNewConversationHandler(IConversationsRepository conversationsRepository)
 {
     this.conversationsRepository = conversationsRepository;
 }
Пример #11
0
 public BaseController()
 {
     Repo = new ConversationsRepository(new SupportSapiensContext());
 }
Пример #12
0
 public ConversationValidator(IConversationsRepository conversationsRepository)
 {
     _conversationsRepository = conversationsRepository;
 }
Пример #13
0
 public UpdateService(IBotService botService, ILogger <UpdateService> logger)
 {
     _botService = botService;
     Repo        = new ConversationsRepository(new SupportSapiensContext());
 }
 public RetrieveConversationsByParticipantPaginatedUseCase(IConversationsRepository conversationsRepository,
                                                           IIdentityService identityService)
 {
     _conversationRepository = conversationsRepository;
     _identityService        = identityService;
 }
 public ConversationsManipulation(IConversationsRepository repository, ILogger <ConversationsManipulation> logger)
 {
     this.repository = repository;
     this.logger     = logger;
 }
 public ImportActiveUsersActionHandler(IActiveUsersRepository activeUsersRepository, IConversationsRepository whatsAppRespository, IConversationUsersRepository conversationUsersRepository)
 {
     this.activeUsersRepository       = activeUsersRepository;
     this.whatsAppRespository         = whatsAppRespository;
     this.conversationUsersRepository = conversationUsersRepository;
 }