use of com.jaku.request.KeypressRequest in project RoMote by wseemann.
the class RemoteFragment method onVolumeChanged.
@Override
public void onVolumeChanged(final KeypressKeyValues keypressKeyValue) {
String url = CommandHelper.getDeviceURL(getActivity());
KeypressRequest keypressRequest = new KeypressRequest(url, keypressKeyValue.getValue());
JakuRequest request = new JakuRequest(keypressRequest, null);
new RequestTask(request, new RequestCallback() {
@Override
public void requestResult(RokuRequestTypes rokuRequestType, RequestTask.Result result) {
}
@Override
public void onErrorResponse(RequestTask.Result result) {
}
}).execute(RokuRequestTypes.keypress);
}
Aggregations