Exemplo n.º 1
0
 public PollingTwitchCategoryProvider(
     TwitchAPIClient twitchAPIClient,
     IGDBClient IGDBClient,
     SteamStoreClient steamStoreClient,
     IGameLocalizationStore gameLocalizationStore,
     IOptions <TwitchApplicationOptions> twitchOptions,
     ILogger <PollingTwitchCategoryProvider> logger)
 {
     _twitchAPIClient  = twitchAPIClient;
     _igdbClient       = IGDBClient;
     _gameLocalization = gameLocalizationStore;
     _twitchOptions    = twitchOptions.Value;
     _logger           = logger;
 }
Exemplo n.º 2
0
 public TwitchCategoriesSynchronizationService(
     TwitchAPIClient twitchApiClient,
     IGDBClient igdbClient,
     SteamStoreClient steamStoreClient,
     IOptions <TwitchApplicationOptions> options,
     IGameLocalizationStore gameLocalizationStore,
     ILogger <TwitchCategoriesSynchronizationService> logger)
 {
     _twitchAPIClient            = twitchApiClient;
     _igdbClient                 = igdbClient;
     _steamStoreClient           = steamStoreClient;
     _steamStoreClient.WebAPIKey = options.Value.SteamApiKey;
     _gameLocalization           = gameLocalizationStore;
     _options = options.Value;
     _logger  = logger;
 }
Exemplo n.º 3
0
 public ChannelGrain(
     [PersistentState("channel", "channelStore")] IPersistentState <ChannelState> channelState,
     [PersistentState("botsettings", "botSettingsStore")] IPersistentState <ChannelBotSettingsState> botSettingsState,
     [PersistentState("customcategories", "customCategoriesStore")] IPersistentState <CategoryDescriptionState> customCategoriesState,
     TwitchAPIClient appClient,
     IOptions <TwitchChatClientOptions> botOptions,
     IOptions <TwitchApplicationOptions> appOptions,
     IEnumerable <CommandRegistration> commands,
     ILogger <ChannelGrain> logger)
 {
     _channelState       = channelState;
     _channelBotState    = botSettingsState;
     _categoriesState    = customCategoriesState;
     _appClient          = appClient;
     _options            = botOptions.Value;
     _twitchOptions      = appOptions.Value;
     _registeredCommands = commands.ToDictionary(c => c.Name, c => c);
     _logger             = logger;
 }