public ApiClientFactory(ISettingsHandler settingsHandler)
        {
            if (settingsHandler == null)
            {
                throw new ArgumentNullException(nameof(settingsHandler));
            }

            twitchApiClient    = new TwitchApiClient(new TwitchTvReadonlyClient(), settingsHandler);
            youtubeApiClient   = new YoutubeApiClient(new YoutubeReadonlyClient());
            smashcastApiClient = new SmashcastApiClient(new SmashcastReadonlyClient());
            mixerClient        = new MixerApiClient(new MixerReadonlyClient());

            apiClients.Add(twitchApiClient);
            apiClients.Add(youtubeApiClient);
            apiClients.Add(smashcastApiClient);
            apiClients.Add(mixerClient);
        }
Ejemplo n.º 2
0
        public ApiClientFactory(ISettingsHandler settingsHandler)
        {
            if (settingsHandler == null)
            {
                throw new ArgumentNullException(nameof(settingsHandler));
            }

            twitchApiClient  = new TwitchApiClient(new TwitchTvReadonlyClient(), settingsHandler);
            youtubeApiClient = new YoutubeApiClient(new YoutubeReadonlyClient());
            hitboxApiClient  = new HitboxApiClient(new HitboxReadonlyClient());
            beamProClient    = new BeamProApiClient(new BeamProReadonlyClient());

            apiClients.Add(twitchApiClient);
            apiClients.Add(youtubeApiClient);
            apiClients.Add(hitboxApiClient);
            apiClients.Add(beamProClient);
        }