|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.breeweb.slimconnect.data.Playlist
Class to represent a playlist within the Squeezebox server.
Constructor Summary | |
Playlist(Song[] songs,
int currentTrack)
contruct a new playlist object, with an array of songs and a currently playing track. |
Method Summary | |
boolean |
equals(java.lang.Object aObject)
|
Song |
getCurrentSong()
returns the current song, if the playlist is empty or the current song is incorrect, This method will return null . |
int |
getCurrentTrack()
Returns the current track playing, note this is mostly the track playing at the moment the playlist was requested. |
Song[] |
getSongs()
Returns the Songs in this playlist |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Playlist(Song[] songs, int currentTrack)
songs
- an array of Song objects.currentTrack
- the song which is currently playing.Song
Method Detail |
public Song getCurrentSong()
null
.
public int getCurrentTrack()
public Song[] getSongs()
Songs
in this playlist
Songs
in this playlistSong
public java.lang.String toString()
public boolean equals(java.lang.Object aObject)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |