Search in sources :

Example 1 with LaunchAppRequest

use of com.jaku.request.LaunchAppRequest in project RoMote by wseemann.

the class ChannelFragment method performLaunch.

private void performLaunch(String appId) {
    String url = CommandHelper.getDeviceURL(getActivity());
    LaunchAppRequest launchAppIdRequest = new LaunchAppRequest(url, appId);
    JakuRequest request = new JakuRequest(launchAppIdRequest, null);
    new RequestTask(request, new RequestCallback() {

        @Override
        public void requestResult(RokuRequestTypes rokuRequestType, RequestTask.Result result) {
        }

        @Override
        public void onErrorResponse(RequestTask.Result result) {
        }
    }).execute(RokuRequestTypes.launch);
}
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) LaunchAppRequest(com.jaku.request.LaunchAppRequest)

Aggregations

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