com.sponsorpay.sdk.android.publisher.currency
Class VirtualCurrencyConnector.CurrencyServerRequestAsyncTask

java.lang.Object
  extended by 
      extended by com.sponsorpay.sdk.android.publisher.AsyncRequest
          extended by com.sponsorpay.sdk.android.publisher.currency.VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
Enclosing class:
VirtualCurrencyConnector

private class VirtualCurrencyConnector.CurrencyServerRequestAsyncTask
extends AsyncRequest

VirtualCurrencyConnector.CurrencyServerRequestAsyncTask used to perform the HTTP requests on a background thread and be notified of its results on the calling thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sponsorpay.sdk.android.publisher.AsyncRequest
AsyncRequest.AsyncRequestResultListener
 
Field Summary
 VirtualCurrencyConnector.RequestType requestType
          Type of the request which will be performed in the background.
 
Fields inherited from class com.sponsorpay.sdk.android.publisher.AsyncRequest
LOG_TAG, shouldLogVerbosely
 
Constructor Summary
VirtualCurrencyConnector.CurrencyServerRequestAsyncTask(VirtualCurrencyConnector.RequestType requestType, java.lang.String requestUrl, AsyncRequest.AsyncRequestResultListener listener)
          Initializes a new instance whose #execute() still needs to be invoked to trigger the request.
 
Method Summary
 
Methods inherited from class com.sponsorpay.sdk.android.publisher.AsyncRequest
didRequestThrowError, doInBackground, getCookieStrings, getHttpStatusCode, getRequestThrownError, getResponseBody, getResponseSignature, hasCookies, hasSucessfulStatusCode, onPostExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestType

public VirtualCurrencyConnector.RequestType requestType
Type of the request which will be performed in the background.

Constructor Detail

VirtualCurrencyConnector.CurrencyServerRequestAsyncTask

public VirtualCurrencyConnector.CurrencyServerRequestAsyncTask(VirtualCurrencyConnector.RequestType requestType,
                                                               java.lang.String requestUrl,
                                                               AsyncRequest.AsyncRequestResultListener listener)
Initializes a new instance whose #execute() still needs to be invoked to trigger the request.

Parameters:
requestType - Type of the request to be performed. See VirtualCurrencyConnector.RequestType.
requestUrl - Url of the request to be performed.
listener - Listener which will be notified of the results of the request / response on the thread which called #execute().