com.breeweb.slimconnect.commands
Class DisplayCommand

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

public class DisplayCommand
extends AbstractCommand

Author:
Bas de Bree

Method Summary
static DisplayCommand displayGet()
           
static AbstractCommand displayNow()
          Returns the command to get any text currently on the display, including anymations.
static DisplayCommand displaySet(java.lang.String line1, java.lang.String line2, int timeInSec)
          Returns the command to set two lines on the display for a given amount of time.
 ReturnData getReturnData(java.lang.String string, java.lang.String playerPrefix)
          Makes sure the command gets executed, the result will be returned using a ReturnData object
 
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
 

Method Detail

displayGet

public static DisplayCommand displayGet()

displaySet

public static DisplayCommand displaySet(java.lang.String line1,
                                        java.lang.String line2,
                                        int timeInSec)
Returns the command to set two lines on the display for a given amount of time.

Parameters:
line1 - the first line.
line2 - the second line.
timeInSec - the amount of time in seconds.
Returns:
the command to set two lines on the display for a given amount of time.

getReturnData

public ReturnData getReturnData(java.lang.String string,
                                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:
string - 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.

displayNow

public static AbstractCommand displayNow()
Returns the command to get any text currently on the display, including anymations.

Returns:
the command to get any text currently on the display, including anymations.