public class Hardware extends Object
| Constructor and Description |
|---|
Hardware(HttpClient httpClient) |
public Hardware(HttpClient httpClient)
public void fetchLedNames(WvaCallback<Set<String>> callback)
WVA.fetchLedNames(WvaCallback)public void fetchButtonNames(WvaCallback<Set<String>> callback)
WVA.fetchButtonNames(WvaCallback)public Set<String> getCachedButtonNames()
WVA.getCachedButtonNames()public Set<String> getCachedLedNames()
WVA.getCachedLedNames()public void fetchButtonState(String buttonName, WvaCallback<Boolean> cb)
WVA.fetchButtonState(String, WvaCallback)public void fetchLedState(String ledName, WvaCallback<Boolean> cb)
WVA.fetchLedState(String, WvaCallback)public void setLedState(String ledName, boolean state, WvaCallback<Boolean> cb) throws JSONException
WVA.setLedState(String, boolean, WvaCallback)JSONException - if an error occurs while creating the requestpublic void fetchTime(WvaCallback<DateTime> cb)
WVA.fetchTime(WvaCallback)public void setTime(DateTime newTime, WvaCallback<DateTime> cb) throws JSONException
WVA.setTime(DateTime, WvaCallback)JSONException - if an error occurs while creating the request