Ejemplo n.º 1
0
 /**
  * Prepares request for loading
  *
  * @return Prepared HttpUriRequest for that VKRequest
  */
 public HttpUriRequest getPreparedRequest() {
   HttpUriRequest request = VKHttpClient.requestWithVkRequest(this);
   if (request == null) {
     VKError error = new VKError(VKError.VK_REQUEST_NOT_PREPARED);
     provideError(error);
     return null;
   }
   return request;
 }
Ejemplo n.º 2
0
 /** Starts loading of prepared request. You can use it instead of executeWithResultBlock */
 public void start() {
   if ((mLoadingOperation = getOperation()) == null) {
     return;
   }
   VKHttpClient.enqueueOperation(mLoadingOperation);
 }