Пример #1
0
 public StreamStatusService(
     IChatbotContextFactory chatbotContextFactory,
     ILogger <IStreamStatusService> logger)
 {
     _chatbotContextFactory = chatbotContextFactory;
     _logger = logger;
 }
 public GiveSubVipsRepository(
     IChatbotContextFactory chatbotContextFactory,
     ILogger <GiveSubVipsRepository> logger)
 {
     _chatbotContextFactory = chatbotContextFactory;
     _logger = logger;
 }
Пример #3
0
 public SaveStreamLabsDonationsRepository(
     IChatbotContextFactory chatbotContextFactory,
     ISetOrCreateSettingRepository setOrCreateSettingRepository)
 {
     _chatbotContextFactory        = chatbotContextFactory;
     _setOrCreateSettingRepository = setOrCreateSettingRepository;
 }
Пример #4
0
        public GuessingGameService(IChatbotContextFactory contextFactory,
                                   TwitchClient client, TwitchAPI api, IConfigService configService,
                                   ILogger <IGuessingGameService> logger)
        {
            this.contextFactory = contextFactory;
            this.Client         = client;
            this.Api            = api;
            _configService      = configService;
            _logger             = logger;

            _streamerChannel        = _configService.Get <string>("StreamerChannel");
            _secondsForGuessingGame = configService.Get <int>("SecondsForGuessingGame");

            if (_configService.Get <bool>("DevelopmentBuild"))
            {
                Api.V5.Chat.GetChatRoomsByChannelAsync(_configService.Get <string>("ChannelId"), _configService.Get <string>("ChatbotAccessToken"))
                .ContinueWith(
                    rooms =>
                {
                    if (!rooms.IsCompletedSuccessfully)
                    {
                        return;
                    }
                    DevelopmentRoomId = rooms.Result.Rooms.SingleOrDefault(r => r.Name == "dev")?.Id;
                });
            }
        }
 public RemoveSuperVipRepository(
     IChatbotContextFactory chatbotContextFactory,
     IConfigService configService
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
     _configService         = configService;
 }
Пример #6
0
 public SaveStreamStatusRepository(
     IChatbotContextFactory chatbotContextFactory,
     ILogger <ISaveStreamStatusRepository> logger
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
     _logger = logger;
 }
 public CloseGuessingGameRepository(
     IChatbotContextFactory chatbotContextFactory,
     ILogger <ICloseGuessingGameRepository> logger
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
     _logger = logger;
 }
 public GiveUsersBytesRepository(
     IChatbotContextFactory chatbotContextFactory,
     IConfigService configService
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
     _configService         = configService;
 }
Пример #9
0
 public VipService(
     IChatbotContextFactory chatbotContextFactory,
     IConfigService configService,
     ILogger <IVipService> logger)
 {
     _chatbotContextFactory = chatbotContextFactory;
     _configService         = configService;
     _logger = logger;
 }
        public PlaylistService(IChatbotContextFactory contextFactory,
                               IConfigService configService,
                               IVipService vipService,
                               ISecretService secretService,
                               ISignalRService signalRService,
                               TwitchClient client,
                               ILogger <IPlaylistService> logger)
        {
            this._contextFactory = contextFactory;
            _configService       = configService;

            this._vipService = vipService;
            _secretService   = secretService;
            _signalRService  = signalRService;

            this._client = client;
            _logger      = logger;

            this._concurrentVipSongsToPlay = configService.Get <int>("ConcurrentRegularSongsToPlay");
        }
 public GetSongPercentageGuessesRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #12
0
 public TransferUserAccountRepository(IChatbotContextFactory chatbotContextFactory)
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public StoreClientIdRepository(IChatbotContextFactory chatbotContextFactory)
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public UpdateDonationVipsRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public GetClientIdsRepository(IChatbotContextFactory chatbotContextFactory)
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public UseSuperVipRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public GetCurrentGuessingGameRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public GiftVipRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #19
0
 public CompleteGuessingGameRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public PromoteUserRequestRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #21
0
 public GetSongsFromSearchResultsRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #22
0
 public GetIsUserInChatRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #23
0
 public GetCommandHelpTextByKeywordRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #24
0
 public AddRequestRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public RemoveQuoteRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public GetStreamStatusRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public EditQuoteRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #28
0
 public IsSuperVipInQueueRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
Пример #29
0
 public GetUsersGiftedVipsRepository(
     IChatbotContextFactory chatbotContextFactory
     )
 {
     _chatbotContextFactory = chatbotContextFactory;
 }
 public StoreChannelRewardRedemptionRepository(IChatbotContextFactory chatbotContextFactory)
 {
     _chatbotContextFactory = chatbotContextFactory;
 }