com.breeweb.slimconnect.commands
Class SongCommand

java.lang.Object
  extended bycom.breeweb.slimconnect.commands.AbstractCommand
      extended bycom.breeweb.slimconnect.commands.SongCommand

public class SongCommand
extends AbstractCommand

Author:
Bas de Bree

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

GENRE

public static final java.lang.String GENRE
See Also:
Constant Field Values

ARTIST

public static final java.lang.String ARTIST
See Also:
Constant Field Values

ALBUM

public static final java.lang.String ALBUM
See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values

DURATION

public static final java.lang.String DURATION
See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values

SONG

public static final java.lang.String SONG
See Also:
Constant Field Values

SONG_GENRE

public static final java.lang.String SONG_GENRE
See Also:
Constant Field Values

SONG_ARTIST

public static final java.lang.String SONG_ARTIST
See Also:
Constant Field Values

SONG_ALBUM

public static final java.lang.String SONG_ALBUM
See Also:
Constant Field Values

SONG_TITLE

public static final java.lang.String SONG_TITLE
See Also:
Constant Field Values

SONG_DURATION

public static final java.lang.String SONG_DURATION
See Also:
Constant Field Values

SONG_PATH

public static final java.lang.String SONG_PATH
See Also:
Constant Field Values
Constructor Detail

SongCommand

public SongCommand(java.lang.String[] params)
Parameters:
params -
Method Detail

getCurrentGenre

public static AbstractCommand getCurrentGenre()
Returns a command to get the current genre.

Returns:
a command to get the current genre.

getCurrentArtist

public static AbstractCommand getCurrentArtist()
Returns a command to get the current artist

Returns:
a command to get the current artist

getCurrentAlbum

public static AbstractCommand getCurrentAlbum()
Returns a command to get the current album

Returns:
a command to get the current album

getCurrentTitle

public static AbstractCommand getCurrentTitle()
Reurns a command to get the current title

Returns:
a command to get the current title

getCurrentDuration

public static AbstractCommand getCurrentDuration()
Returns a command to get the current duration

Returns:
a command to get the current duration

getCurrentPath

public static AbstractCommand getCurrentPath()
Returns a command to get the current path

Returns:
a command to get the current path

getReturnData

public ReturnData getReturnData(java.lang.String aLine,
                                java.lang.String playerPrefix)
Description copied from class: AbstractCommand
Makes sure the command gets executed, the result will be returned using a ReturnData object

Specified by:
getReturnData in class AbstractCommand
Parameters:
aLine - the command as line.
playerPrefix - the prefix of the player to which this command is targeted.
Returns:
a ReturnData object representing the result of the command.

getSongPath

public static AbstractCommand getSongPath(int i)
Returns a command to get the path for a given song index.

Parameters:
i - the song index.
Returns:
a command to get the path for a given song index.

getSongDuration

public static AbstractCommand getSongDuration(int i)
Returns a command to get the duration for a given song index.

Parameters:
i - the index
Returns:
a command to get the duration for a given song index.

getSongTitle

public static AbstractCommand getSongTitle(int i)
Returns a command to get the title for a given song index.

Parameters:
i - the index.
Returns:
a command to get the title for a given song index.

getSongAlbum

public static AbstractCommand getSongAlbum(int i)
Returns a command to get the album for a given song index.

Parameters:
i - the index
Returns:
a command to get the album for a given song index.

getSongArtist

public static AbstractCommand getSongArtist(int i)
Returns a command to get the artist for a given song index.

Parameters:
i - the index
Returns:
a command to get the artist for a given song index.

getSongGenre

public static AbstractCommand getSongGenre(int i)
Returns a command to get the genre for a given song index.

Parameters:
i - the index
Returns:
a command to get the genre for a given song index.