Class jTrackClient
java.lang.Object
com.github.connyscode.ctils.jTrack.jTrackClient
public class jTrackClient
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description jTrackClient(java.lang.String ACCESS_TOKEN)
-
Method Summary
Modifier and Type Method Description Artist
getArtist(long artistGID)
Get an Artist out of an artistGIDSong
getSong(long songID)
Get a Song out of a songIDSong
getSong(SongSearchResult result)
Get a Song out of a SearchResultjava.util.List<SongSearchResult>
performSongSearch(java.lang.String searchPhrase)
Perform a Search for Songs with parameters
-
Constructor Details
-
jTrackClient
public jTrackClient(java.lang.String ACCESS_TOKEN)
-
-
Method Details
-
performSongSearch
Perform a Search for Songs with parameters- Parameters:
searchPhrase
- A Search Phrase- See Also:
SongSearchResult
-
getSong
public Song getSong(SongSearchResult result) throws com.github.connyscode.ctils.jTrack.backend.SongNotFoundExceptionGet a Song out of a SearchResult- Parameters:
result
- A single SearchResult- Returns:
- The Track that holds all Info like: Author, Title, ...
- Throws:
com.github.connyscode.ctils.jTrack.backend.SongNotFoundException
- See Also:
Song
-
getSong
public Song getSong(long songID) throws com.github.connyscode.ctils.jTrack.backend.SongNotFoundExceptionGet a Song out of a songID- Parameters:
songID
- A song ID- Returns:
- The Track that holds all Info like: Author, Title, ...
- Throws:
com.github.connyscode.ctils.jTrack.backend.SongNotFoundException
- See Also:
Song
-
getArtist
public Artist getArtist(long artistGID) throws com.github.connyscode.ctils.jTrack.backend.ArtistNotFoundExceptionGet an Artist out of an artistGID- Parameters:
artistGID
- An artistGID- Returns:
- The Track that holds all Info like: Author, Title, ...
- Throws:
com.github.connyscode.ctils.jTrack.backend.ArtistNotFoundException
- See Also:
Song
-