public class NetioPlugMessages extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.joda.time.format.DateTimeFormatter |
dateTimeFormatter |
static int |
PLUG_OFF |
static int |
PLUG_ON |
static int |
STATUS_LOGIN |
static int |
STATUS_OK |
static int |
STATUS_QUIT |
| Constructor and Description |
|---|
NetioPlugMessages(HashHelper hashHelper) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEnablePortForPeriodOfTimeMessage(Plug plug,
org.joda.time.DateTime timeToStart,
org.joda.time.DateTime timeToEnd) |
org.joda.time.DateTime |
getEndTimeFromTimerMessage(String response) |
String |
getLoginMessage(String adminAccount,
String adminPassword,
String welcomeMessageText) |
String |
getPortEnableDisableMessage(Plug plug,
int newState) |
String |
getQuitMessage() |
org.joda.time.DateTime |
getStartTimeFromTimerMessage(String response) |
org.joda.time.DateTime |
getSystemTime(String timeMessageText) |
String |
getSystemTimeMessage() |
String |
getTimerEnableMessage(Plug plug) |
String |
getTimerMessage(Plug plug) |
boolean |
isTimerSet(String timerMessageText) |
public static final int STATUS_LOGIN
public static final int STATUS_QUIT
public static final int STATUS_OK
public static final int PLUG_ON
public static final int PLUG_OFF
public static final org.joda.time.format.DateTimeFormatter dateTimeFormatter
@Inject public NetioPlugMessages(HashHelper hashHelper)
public String getLoginMessage(String adminAccount, String adminPassword, String welcomeMessageText)
public String getSystemTimeMessage()
public String getEnablePortForPeriodOfTimeMessage(Plug plug, org.joda.time.DateTime timeToStart, org.joda.time.DateTime timeToEnd)
public String getQuitMessage()
public org.joda.time.DateTime getSystemTime(String timeMessageText)
public boolean isTimerSet(String timerMessageText)
public org.joda.time.DateTime getStartTimeFromTimerMessage(String response)
public org.joda.time.DateTime getEndTimeFromTimerMessage(String response)
Copyright © 2004-2013. All Rights Reserved.