Search in sources :

Example 6 with KeypressRequest

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);
}
Also used : RequestTask(wseemann.media.romote.tasks.RequestTask) RokuRequestTypes(wseemann.media.romote.utils.RokuRequestTypes) JakuRequest(com.jaku.core.JakuRequest) RequestCallback(wseemann.media.romote.tasks.RequestCallback) KeypressRequest(com.jaku.request.KeypressRequest)

Aggregations

JakuRequest (com.jaku.core.JakuRequest)6 KeypressRequest (com.jaku.request.KeypressRequest)6 RequestCallback (wseemann.media.romote.tasks.RequestCallback)6 RequestTask (wseemann.media.romote.tasks.RequestTask)6 RokuRequestTypes (wseemann.media.romote.utils.RokuRequestTypes)6