Package com.tagtraum.ubermusic.lastfm
Class Session
- java.lang.Object
-
- com.tagtraum.ubermusic.lastfm.Session
-
public class Session extends Object
LastFM Session.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LastFMgetLastFM()StringgetSessionKey()StringgetUsername()voidlibraryAddTrack(AudioSong song)AudioSonglookup(AudioSong song)StringtoString()booleantrackScrobble(AudioSong song, long startedPlaying)List<Tag>trackTopTags(AudioSong song)voidtrackUpdateNowPlaying(AudioSong song)
-
-
-
Constructor Detail
-
Session
public Session(LastFM lastFM, LastFM.Session session)
-
-
Method Detail
-
getLastFM
public LastFM getLastFM()
-
getUsername
public String getUsername()
-
getSessionKey
public String getSessionKey()
-
libraryAddTrack
public void libraryAddTrack(AudioSong song) throws IOException
- Throws:
IOException
-
trackUpdateNowPlaying
public void trackUpdateNowPlaying(AudioSong song) throws IOException
- Throws:
IOException
-
trackScrobble
public boolean trackScrobble(AudioSong song, long startedPlaying) throws IOException
- Parameters:
song- songstartedPlaying- (required) time in seconds since 1970- Returns:
- true, if accepted
- Throws:
IOException
-
trackTopTags
public List<Tag> trackTopTags(AudioSong song) throws IOException
- Throws:
IOException
-
lookup
public AudioSong lookup(AudioSong song) throws IOException
- Throws:
IOException
-
-