|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.breeweb.slimconnect.commands.AbstractCommand
com.breeweb.slimconnect.commands.SongCommand
Field Summary | |
static java.lang.String |
ALBUM
|
static java.lang.String |
ARTIST
|
static java.lang.String |
DURATION
|
static java.lang.String |
GENRE
|
static java.lang.String |
PATH
|
static java.lang.String |
SONG
|
static java.lang.String |
SONG_ALBUM
|
static java.lang.String |
SONG_ARTIST
|
static java.lang.String |
SONG_DURATION
|
static java.lang.String |
SONG_GENRE
|
static java.lang.String |
SONG_PATH
|
static java.lang.String |
SONG_TITLE
|
static java.lang.String |
TITLE
|
Constructor Summary | |
SongCommand(java.lang.String[] params)
|
Method Summary | |
static AbstractCommand |
getCurrentAlbum()
Returns a command to get the current album |
static AbstractCommand |
getCurrentArtist()
Returns a command to get the current artist |
static AbstractCommand |
getCurrentDuration()
Returns a command to get the current duration |
static AbstractCommand |
getCurrentGenre()
Returns a command to get the current genre. |
static AbstractCommand |
getCurrentPath()
Returns a command to get the current path |
static AbstractCommand |
getCurrentTitle()
Reurns a command to get the current title |
ReturnData |
getReturnData(java.lang.String aLine,
java.lang.String playerPrefix)
Makes sure the command gets executed, the result will be returned using a ReturnData object |
static AbstractCommand |
getSongAlbum(int i)
Returns a command to get the album for a given song index. |
static AbstractCommand |
getSongArtist(int i)
Returns a command to get the artist for a given song index. |
static AbstractCommand |
getSongDuration(int i)
Returns a command to get the duration for a given song index. |
static AbstractCommand |
getSongGenre(int i)
Returns a command to get the genre for a given song index. |
static AbstractCommand |
getSongPath(int i)
Returns a command to get the path for a given song index. |
static AbstractCommand |
getSongTitle(int i)
Returns a command to get the title for a given song index. |
Methods inherited from class com.breeweb.slimconnect.commands.AbstractCommand |
expectStatus, getAsLine, getResultString, setExpectStatus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String GENRE
public static final java.lang.String ARTIST
public static final java.lang.String ALBUM
public static final java.lang.String TITLE
public static final java.lang.String DURATION
public static final java.lang.String PATH
public static final java.lang.String SONG
public static final java.lang.String SONG_GENRE
public static final java.lang.String SONG_ARTIST
public static final java.lang.String SONG_ALBUM
public static final java.lang.String SONG_TITLE
public static final java.lang.String SONG_DURATION
public static final java.lang.String SONG_PATH
Constructor Detail |
public SongCommand(java.lang.String[] params)
params
- Method Detail |
public static AbstractCommand getCurrentGenre()
public static AbstractCommand getCurrentArtist()
public static AbstractCommand getCurrentAlbum()
public static AbstractCommand getCurrentTitle()
public static AbstractCommand getCurrentDuration()
public static AbstractCommand getCurrentPath()
public ReturnData getReturnData(java.lang.String aLine, java.lang.String playerPrefix)
AbstractCommand
getReturnData
in class AbstractCommand
aLine
- the command as line.playerPrefix
- the prefix of the player to which this command is targeted.
public static AbstractCommand getSongPath(int i)
i
- the song index.
public static AbstractCommand getSongDuration(int i)
i
- the index
public static AbstractCommand getSongTitle(int i)
i
- the index.
public static AbstractCommand getSongAlbum(int i)
i
- the index
public static AbstractCommand getSongArtist(int i)
i
- the index
public static AbstractCommand getSongGenre(int i)
i
- the index
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |