Exemplo n.º 1
0
 public SearchService(SpotifyHttpClient spotifyHttpClient, ArtistService artistService, AlbumService albumService, PlaylistService playlistService)
 {
     _artistService     = artistService;
     _albumService      = albumService;
     _playlistService   = playlistService;
     _spotifyHttpClient = spotifyHttpClient;
 }
Exemplo n.º 2
0
 public SearchService(AuthenticationManager authenticationManager, ArtistService artistService, AlbumService albumService, PlaylistService playlistService)
 {
     _artistService   = artistService;
     _albumService    = albumService;
     _playlistService = playlistService;
     _httpClient      = new HttpClient
     {
         DefaultRequestHeaders =
         {
             Authorization = new AuthenticationHeaderValue(authenticationManager.Token.TokenType,
                                                           authenticationManager.Token.AccessToken)
         }
     };
 }