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 artistGID
    Song getSong​(long songID)
    Get a Song out of a songID
    Song getSong​(SongSearchResult result)
    Get a Song out of a SearchResult
    java.util.List<SongSearchResult> performSongSearch​(java.lang.String searchPhrase)
    Perform a Search for Songs with parameters

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • jTrackClient

      public jTrackClient​(java.lang.String ACCESS_TOKEN)
  • Method Details

    • performSongSearch

      public java.util.List<SongSearchResult> performSongSearch​(java.lang.String searchPhrase)
      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.SongNotFoundException
      Get 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.SongNotFoundException
      Get 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.ArtistNotFoundException
      Get 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