public class Station extends Object implements Serializable
| Constructor and Description |
|---|
Station(Element root)
Create a Station from a dom4j Element.
|
| Modifier and Type | Method and Description |
|---|---|
static URI |
getGlobalTagStationUri(String tagName)
Create the URI needed to play a Tags global radio.
|
static URI |
getGroupStationUri(String groupName)
Create the URI needed to play a Groups members radio.
|
static URI |
getLibraryStationUri(String userName)
Create the URI needed to play a Users library radio.
|
static URI |
getLovedTracksStationUri(String userName)
Create the URI needed to play a Users loved tracks radio.
|
static URI |
getMixRadioStationUri(String username)
Create the Station URI needed to play a users mix radio.
|
static URI |
getMultiArtistStationUri(Set<Long> artistIds) |
static URI |
getMultiTagStationUri(Set<String> tagNames) |
String |
getName() |
static URI |
getNeighboursStationUri(String userName)
Create the URI needed to play a Users neighbour radio.
|
static URI |
getRecommendationStationUri(String userName)
Create a URI needed to play a Users recommended radio.
|
static URI |
getSimilarArtistsStationUri(String artistName)
Create the Station URI needed to play an Artists similar artists radio.
|
Boolean |
getSupportsDiscovery() |
static URI |
getTopFansStationUri(String artistName)
Create the URI needed to play an Artists top fans radio.
|
String |
getType() |
URL |
getUrl() |
static URI |
getUserTagStation(String userName,
String tagName)
Create the URI needed to play a Users tag radio.
|
void |
setName(String name) |
void |
setSupportsDiscovery(Boolean supportsDiscovery) |
void |
setType(String type) |
void |
setUrl(URL url) |
public Station(Element root)
root - The element to create the Station from.public final String getType()
public final void setType(String type)
public final String getName()
public final void setName(String name)
public final URL getUrl()
public final void setUrl(URL url)
public final Boolean getSupportsDiscovery()
public final void setSupportsDiscovery(Boolean supportsDiscovery)
public static URI getSimilarArtistsStationUri(String artistName)
public static URI getMixRadioStationUri(String username)
public static URI getTopFansStationUri(String artistName)
artistName - public static URI getLibraryStationUri(String userName)
userName - public static URI getNeighboursStationUri(String userName)
userName - public static URI getLovedTracksStationUri(String userName)
userName - public static URI getRecommendationStationUri(String userName)
userName - public static URI getGroupStationUri(String groupName)
groupName - public static URI getGlobalTagStationUri(String tagName)
tagName - public static URI getUserTagStation(String userName, String tagName)
userName - tagName - Copyright © 2013 dontdrinkandroot. All Rights Reserved.