public class LedToggle extends Object
Constructor and Description |
---|
LedToggle()
empty constructor for the Data transfer object
|
LedToggle(String led)
Constructor for the Data transfer object
|
Modifier and Type | Method and Description |
---|---|
String |
getLed() |
void |
setLed(String led) |
LedToggle |
unmarshalLedToggle(BufferedReader dataset)
Alternative method responsible for deserializing the received
JSON-formatted L stage from sensor.
|
LedToggle |
unmarshalLedToggle(byte[] dataset)
Method responsible for deserializing the received byte array
representation of L from sensor.
|
public LedToggle(String led)
public LedToggle()
public String getLed()
public void setLed(String led)
led
- the led to setpublic LedToggle unmarshalLedToggle(BufferedReader dataset)
dataset
- the dataset to unmarshall incoming from sensor side in a JSON
formatpublic LedToggle unmarshalLedToggle(byte[] dataset) throws IOException, ClassNotFoundException
dataset
- the dataset to unmarshall incoming from sensor side as a byte
arrayIOException
ClassNotFoundException