Class jTrackClient
java.lang.Object
com.github.connyscode.ctils.jTrack.jTrackClient
public class jTrackClient
extends java.lang.Object
- 
Constructor SummaryConstructors Constructor Description jTrackClient(java.lang.String ACCESS_TOKEN)
- 
Method SummaryModifier and Type Method Description ArtistgetArtist(long artistGID)Get an Artist out of an artistGIDSonggetSong(long songID)Get a Song out of a songIDSonggetSong(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- 
jTrackClientpublic jTrackClient(java.lang.String ACCESS_TOKEN)
 
- 
- 
Method Details- 
performSongSearchPerform a Search for Songs with parameters- Parameters:
- searchPhrase- A Search Phrase
- See Also:
- SongSearchResult
 
- 
getSongpublic 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
 
- 
getSongpublic 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
 
- 
getArtistpublic 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
 
 
-