public class BatteryStatusResponder extends AsciiCommandResponderBase
Constructor and Description |
---|
BatteryStatusResponder() |
Modifier and Type | Method and Description |
---|---|
int |
getBatteryLevel()
Gets the battery level retrieved from the reader.
|
IBatteryLevelReceivedDelegate |
getBatteryLevelReceivedDelegate() |
protected boolean |
processReceivedLine(java.lang.String fullLine,
java.lang.String header,
java.lang.String value,
boolean moreAvailable)
Each correctly terminated line from the device is passed to this method for processing
|
void |
setBatteryLevelReceivedDelegate(IBatteryLevelReceivedDelegate delegate) |
buildCommandLine, clearLastResponse, getCommandLine, getCommandName, getResponseLifecycleDelegate, getResponseStarted, isResponseFinished, parseParameters, processReceivedLine, responseDidFinish, responseDidReceiveParameter, responseDidStart, setCommandName, setResponseLifecycleDelegate, setResponseStarted, splitParameters
appendToMessages, appendToParameters, appendToResponse, getErrorCode, getMessages, getParameters, getResponse, isSuccessful, setErrorCode, setIsSuccessful, setResponse
public IBatteryLevelReceivedDelegate getBatteryLevelReceivedDelegate()
public void setBatteryLevelReceivedDelegate(IBatteryLevelReceivedDelegate delegate)
public final int getBatteryLevel()
protected boolean processReceivedLine(java.lang.String fullLine, java.lang.String header, java.lang.String value, boolean moreAvailable) throws java.lang.Exception
processReceivedLine
in class AsciiCommandResponderBase
fullLine
- The line to be processedheader
- The response line header excluding the colon e.g. 'CS' for a command started responsevalue
- The response line following the colon e.g. '.iv'moreAvailable
- When true indicates there are additional lines to be processed (and will also be passed to this method)java.lang.Exception