public class Radio extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Radio.RadioStation |
Modifier and Type | Method and Description |
---|---|
Playlist |
getPlaylist()
Fetches a new radio playlist.
|
Playlist |
getPlaylist(boolean discovery,
boolean rtp)
Fetches a new radio playlist.
|
String |
getStationName() |
String |
getStationUrl() |
String |
getType() |
int |
playlistExpiresIn()
Returns the playlist expiration value for the last playlist fetchet, or -1 if no playlist has been fetched yet.
|
boolean |
supportsDiscovery() |
static Radio |
tune(Radio.RadioStation station,
Locale locale,
Session session)
Tune in to a Last.fm radio station.
|
static Radio |
tune(Radio.RadioStation station,
Session session)
Tune in to a Last.fm radio station.
|
static Radio |
tune(String station,
Locale locale,
Session session)
Tune in to a Last.fm radio station.
|
public String getType()
public String getStationName()
public String getStationUrl()
public boolean supportsDiscovery()
public int playlistExpiresIn()
public static Radio tune(Radio.RadioStation station, Session session)
station
- An instance of Radio.RadioStation
session
- A Session instancepublic static Radio tune(Radio.RadioStation station, Locale locale, Session session)
station
- An instance of Radio.RadioStation
locale
- The language you want the radio's name insession
- A Session instancepublic static Radio tune(String station, Locale locale, Session session)
station
- A lastfm radio URLlocale
- The language you want the radio's name insession
- A Session instancepublic Playlist getPlaylist()
public Playlist getPlaylist(boolean discovery, boolean rtp)
discovery
- Whether to request last.fm content with discovery mode switched onrtp
- Whether the user is scrobbling or not during this radio session (helps content generation)