Ejemplo n.º 1
0
 public SpotifyPlaybackService(
     SpotifyHttpClientFactory spotifyApiFactory,
     UserService userService)
 {
     _spotifyApiFactory = spotifyApiFactory;
     _userService       = userService;
 }
Ejemplo n.º 2
0
 public SongFinishedJob(
     ILogger <SongFinishedJob> logger,
     PlaybackSessionRepository sessionRepo,
     SongPlaybackRepository songRepo,
     SpotifyHttpClientFactory spotifyApiFactory,
     UserTokenService tokenService,
     SpotifyPlaybackService playbackService,
     IScheduler jobScheduler,
     IHubContext <DiscordBotHub> botHub)
 {
     _logger            = logger;
     _sessionRepo       = sessionRepo;
     _songRepo          = songRepo;
     _spotifyApiFactory = spotifyApiFactory;
     _playbackService   = playbackService;
     _jobScheduler      = jobScheduler;
     _botHub            = botHub;
 }