|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.echonest.api.v4.Params
com.echonest.api.v4.PlaylistParams
public class PlaylistParams
| Nested Class Summary | |
|---|---|
static class |
PlaylistParams.PlaylistSort
|
static class |
PlaylistParams.PlaylistType
|
| Constructor Summary | |
|---|---|
PlaylistParams()
|
|
| Method Summary | |
|---|---|
void |
addArtist(java.lang.String artist)
Adds the name of a seed artist |
void |
addArtistID(java.lang.String artistID)
Adds an ID of a seed artist |
void |
addDescription(java.lang.String desc)
Adds a description of the type of artists that can be included in the playlist |
void |
addIDSpace(java.lang.String idspace)
|
void |
addMood(java.lang.String mood)
Adds a mood of the type of artists that can be included in the playlist |
void |
addSeedCatalog(java.lang.String id)
Adds a seed catalog |
void |
addStyle(java.lang.String style)
Adds a style of the type of artists that can be included in the playlist |
void |
includeArtistFamiliarity()
|
void |
includeArtistHotttnesss()
|
void |
includeArtistLocation()
|
void |
includeAudioSummary()
|
void |
includeSongHotttnesss()
|
void |
includeTracks()
|
void |
setAdventurousness(float adventure)
Sets the desired adventurousness for the playlist. |
void |
setArtistEndYearAfter(int year)
Constrains results to artists that have a latest end year after the given year |
void |
setArtistEndYearBefore(int year)
Constrains results to artists that have a latest end year before the given year |
void |
setArtistMaxFamiliarity(float val)
|
void |
setArtistMaxHotttnesss(float val)
|
void |
setArtistMaxLatitude(float val)
|
void |
setArtistMaxLongitude(float val)
|
void |
setArtistMinFamiliarity(float val)
|
void |
setArtistMinHotttnesss(float val)
|
void |
setArtistMinLatitude(float val)
|
void |
setArtistMinLongitude(float val)
|
void |
setArtistPick(java.lang.String songSort,
boolean ascending,
int count)
How songs are to be picked for artist-type playlists. |
void |
setArtistStartYearAfter(int year)
Constrains results to artists that have an earliest start year after the given year |
void |
setArtistStartYearBefore(int year)
Constrains results to artists that have an earliest start year before the given year |
void |
setDMCA(boolean dmca)
|
void |
setKey(int key)
|
void |
setLimit(boolean limit)
|
void |
setMaxDanceability(float val)
|
void |
setMaxDuration(float val)
|
void |
setMaxEnergy(float val)
|
void |
setMaxFamiliarity(float val)
|
void |
setMaxLoudness(float val)
|
void |
setMaxTempo(float tempo)
|
void |
setMinDanceability(float val)
|
void |
setMinDuration(float val)
|
void |
setMinEnergy(float val)
|
void |
setMinLoudness(float val)
|
void |
setMinTempo(float tempo)
|
void |
setMode(int mode)
|
void |
setResults(int results)
Set the maximum number of songs to return in the playlist |
void |
setSongMaxHotttnesss(float val)
|
void |
setSongMinHotttnesss(float val)
|
void |
setType(PlaylistParams.PlaylistType type)
Sets the type of the playlist. |
void |
setVariety(float variety)
the variety of artists to be represented in the playlist. |
void |
sortBy(PlaylistParams.PlaylistSort sortType,
boolean ascending)
|
| Methods inherited from class com.echonest.api.v4.Params |
|---|
add, add, add, add, add, add, getMap, set, set, set, set, size, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaylistParams()
| Method Detail |
|---|
public void setType(PlaylistParams.PlaylistType type)
type - the type of the playlist.
public void setArtistPick(java.lang.String songSort,
boolean ascending,
int count)
songSort - the song sortascending - if true, ascending sortcount - the number of songs to pick frompublic void setVariety(float variety)
variety - a value between 0 and 1public void setAdventurousness(float adventure)
adventure - a value between 0 and 1public void addSeedCatalog(java.lang.String id)
id - the ID of the seed catalogpublic void addArtistID(java.lang.String artistID)
artistID - an ID of the seed artistpublic void addArtist(java.lang.String artist)
artist - the name of the seed artistpublic void addDescription(java.lang.String desc)
desc - public void addStyle(java.lang.String style)
style - the stylepublic void addMood(java.lang.String mood)
mood - the moodpublic void setResults(int results)
results - the resultspublic void setMaxTempo(float tempo)
public void setMinTempo(float tempo)
public void setMaxDuration(float val)
public void setMinDuration(float val)
public void setMaxLoudness(float val)
public void setMinLoudness(float val)
public void setMaxFamiliarity(float val)
public void setMaxDanceability(float val)
public void setMinDanceability(float val)
public void setMaxEnergy(float val)
public void setMinEnergy(float val)
public void setArtistMaxFamiliarity(float val)
public void setArtistMinFamiliarity(float val)
public void setArtistMaxHotttnesss(float val)
public void setArtistMinHotttnesss(float val)
public void setSongMaxHotttnesss(float val)
public void setSongMinHotttnesss(float val)
public void setArtistMaxLongitude(float val)
public void setArtistMinLongitude(float val)
public void setArtistMaxLatitude(float val)
public void setArtistMinLatitude(float val)
public void setMode(int mode)
public void setKey(int key)
public void setLimit(boolean limit)
public void setArtistStartYearBefore(int year)
year - public void setArtistStartYearAfter(int year)
year - public void setArtistEndYearBefore(int year)
year - public void setArtistEndYearAfter(int year)
year - public void includeAudioSummary()
public void includeTracks()
public void includeSongHotttnesss()
public void includeArtistHotttnesss()
public void includeArtistFamiliarity()
public void includeArtistLocation()
public void addIDSpace(java.lang.String idspace)
public void sortBy(PlaylistParams.PlaylistSort sortType,
boolean ascending)
public void setDMCA(boolean dmca)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||