public class BatteryStateTransformer extends Object
| Constructor and Description |
|---|
BatteryStateTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static Double |
transform(rst.domotic.state.BatteryStateType.BatteryState batteryState)
Get the battery level between 0 and 100.
|
static rst.domotic.state.BatteryStateType.BatteryState |
transform(Double value)
Transform a number to a battery state.
|
public static rst.domotic.state.BatteryStateType.BatteryState transform(Double value)
value - the battery level between 0 and 100public static Double transform(rst.domotic.state.BatteryStateType.BatteryState batteryState)
batteryState - the stateCopyright © 2015–2017 openbase.org. All rights reserved.