Пример #1
0
 void requestHTTPAsync(
     String request,
     byte[] rest_of_request,
     YGenericHub.RequestAsyncResult asyncResult,
     Object context)
     throws YAPI_Exception {
   String shortRequest = formatRequest(request);
   _hub.devRequestAsync(this, shortRequest, rest_of_request, asyncResult, context);
 }
Пример #2
0
 String requestHTTPSyncAsString(String request, byte[] rest_of_request) throws YAPI_Exception {
   String shortRequest = formatRequest(request);
   final byte[] bytes = _hub.devRequestSync(this, shortRequest, rest_of_request);
   return new String(bytes, YAPI.DeviceCharset);
 }
Пример #3
0
 byte[] requestHTTPSync(String request, byte[] rest_of_request) throws YAPI_Exception {
   String shortRequest = formatRequest(request);
   return _hub.devRequestSync(this, shortRequest, rest_of_request);
 }