Package de.jsone_studios.wrapper.spotify
Class SpotifyWebApi
- java.lang.Object
-
- de.jsone_studios.wrapper.spotify.SpotifyWebApi
-
- All Implemented Interfaces:
SpotifyApi
- Direct Known Subclasses:
AuthenticatedSpotifyApi
public class SpotifyWebApi extends Object implements SpotifyApi
-
-
Field Summary
Fields Modifier and Type Field Description static StringSPOTIFY_WEB_API_ENDPOINT
-
Constructor Summary
Constructors Constructor Description SpotifyWebApi()SpotifyWebApi(okhttp3.HttpUrl baseUrl)SpotifyWebApi(okhttp3.OkHttpClient okHttpClient)SpotifyWebApi(okhttp3.OkHttpClient okHttpClient, okhttp3.HttpUrl baseUrl)SpotifyWebApi(retrofit2.Retrofit retrofit)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.jsone_studios.wrapper.spotify.SpotifyApi
callApi, callApiAndReturnBody, getBody, getErrorBody, getErrorDetailsFromResponse
-
-
-
-
Field Detail
-
SPOTIFY_WEB_API_ENDPOINT
public static final String SPOTIFY_WEB_API_ENDPOINT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpotifyWebApi
public SpotifyWebApi(retrofit2.Retrofit retrofit)
-
SpotifyWebApi
public SpotifyWebApi(okhttp3.OkHttpClient okHttpClient)
-
SpotifyWebApi
public SpotifyWebApi(okhttp3.OkHttpClient okHttpClient, okhttp3.HttpUrl baseUrl)
-
SpotifyWebApi
public SpotifyWebApi(okhttp3.HttpUrl baseUrl)
-
SpotifyWebApi
public SpotifyWebApi()
-
-
Method Detail
-
getRetrofit
public retrofit2.Retrofit getRetrofit()
- Specified by:
getRetrofitin interfaceSpotifyApi
-
getAlbumsService
public AlbumsSpotifyService getAlbumsService()
- Specified by:
getAlbumsServicein interfaceSpotifyApi
-
getArtistsService
public ArtistsSpotifyService getArtistsService()
- Specified by:
getArtistsServicein interfaceSpotifyApi
-
getBrowseService
public BrowseSpotifyService getBrowseService()
- Specified by:
getBrowseServicein interfaceSpotifyApi
-
getFollowService
public FollowSpotifyService getFollowService()
- Specified by:
getFollowServicein interfaceSpotifyApi
-
getLibraryService
public LibrarySpotifyService getLibraryService()
- Specified by:
getLibraryServicein interfaceSpotifyApi
-
getPersonalizationService
public PersonalizationSpotifyService getPersonalizationService()
- Specified by:
getPersonalizationServicein interfaceSpotifyApi
-
getPlaylistsService
public PlaylistsSpotifyService getPlaylistsService()
- Specified by:
getPlaylistsServicein interfaceSpotifyApi
-
getPlaylistTracksService
public PlaylistTracksSpotifyService getPlaylistTracksService()
- Specified by:
getPlaylistTracksServicein interfaceSpotifyApi
-
getSearchService
public SearchSpotifyService getSearchService()
- Specified by:
getSearchServicein interfaceSpotifyApi
-
getTracksService
public TracksSpotifyService getTracksService()
- Specified by:
getTracksServicein interfaceSpotifyApi
-
getUsersProfileService
public UsersProfileSpotifyService getUsersProfileService()
- Specified by:
getUsersProfileServicein interfaceSpotifyApi
-
-