use of wseemann.media.romote.tasks.RequestCallback in project RoMote by wseemann.
the class RemoteFragment method performKeypress.
private void performKeypress(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);
}
use of wseemann.media.romote.tasks.RequestCallback in project RoMote by wseemann.
the class TextInputDialog method sendBackspace.
private void sendBackspace() {
String url = CommandHelper.getDeviceURL(getActivity());
KeypressRequest keypressRequest = new KeypressRequest(url, KeypressKeyValues.BACKSPACE.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);
}
use of wseemann.media.romote.tasks.RequestCallback in project RoMote by wseemann.
the class TextInputDialog method sendStringLiteral.
private void sendStringLiteral(String stringLiteral) {
String url = CommandHelper.getDeviceURL(getActivity());
KeypressRequest keypressRequest = new KeypressRequest(url, KeypressKeyValues.LIT_.getValue() + stringLiteral);
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);
}
use of wseemann.media.romote.tasks.RequestCallback in project RoMote by wseemann.
the class AltMainActivity method performSearch.
private void performSearch(String searchText) {
String url = CommandHelper.getDeviceURL(this);
SearchRequest searchRequest = new SearchRequest(url, searchText, null, null, null, null, null, null, null, null, null);
JakuRequest request = new JakuRequest(searchRequest, null);
new RequestTask(request, new RequestCallback() {
@Override
public void requestResult(RokuRequestTypes rokuRequestType, RequestTask.Result result) {
}
@Override
public void onErrorResponse(RequestTask.Result result) {
}
}).execute(RokuRequestTypes.search);
}
use of wseemann.media.romote.tasks.RequestCallback in project RoMote by wseemann.
the class CommandService method performKeypress.
private void performKeypress(KeypressKeyValues keypressKeyValue) {
String url = CommandHelper.getDeviceURL(CommandService.this);
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