com.stackmob.sdk.callback
Class StackMobCountCallback

java.lang.Object
  extended by com.stackmob.sdk.callback.StackMobRawCallback
      extended by com.stackmob.sdk.callback.StackMobCallback
          extended by com.stackmob.sdk.callback.StackMobCountCallback

public abstract class StackMobCountCallback
extends StackMobCallback


Field Summary
 
Fields inherited from class com.stackmob.sdk.callback.StackMobRawCallback
requestBody, requestHeaders, requestURL, requestVerb, responseBody, responseHeaders, responseStatusCode, retriesRemaining
 
Constructor Summary
StackMobCountCallback()
           
 
Method Summary
 void done(HttpVerb requestVerb, String requestURL, List<Map.Entry<String,String>> requestHeaders, String requestBody, Integer responseStatusCode, List<Map.Entry<String,String>> responseHeaders, byte[] responseBody)
          the method that will be called when the call to StackMob is complete.
abstract  void success(long count)
           
 void success(String count)
           
 
Methods inherited from class com.stackmob.sdk.callback.StackMobCallback
failure
 
Methods inherited from class com.stackmob.sdk.callback.StackMobRawCallback
getRetriesRemaining, getTotalNumberOfItemsFromContentRange, getTotalObjectCountFromPagination, retry, setDone, setRetriesRemaining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackMobCountCallback

public StackMobCountCallback()
Method Detail

done

public void done(HttpVerb requestVerb,
                 String requestURL,
                 List<Map.Entry<String,String>> requestHeaders,
                 String requestBody,
                 Integer responseStatusCode,
                 List<Map.Entry<String,String>> responseHeaders,
                 byte[] responseBody)
Description copied from class: StackMobRawCallback
the method that will be called when the call to StackMob is complete. may be executed in a background thread

Overrides:
done in class StackMobCallback
Parameters:
requestVerb - the HTTP verb that was requested
requestURL - the URL that was requested
requestHeaders - the headers in the request
requestBody - the body of the request. will be an empty string for GET, DELETE, etc...
responseStatusCode - the status code of the HTTP response from StackMob
responseHeaders - the response headers from StackMob
responseBody - the response body from StackMob

success

public abstract void success(long count)

success

public void success(String count)
Specified by:
success in class StackMobCallback


Copyright © 2012 StackMob. All Rights Reserved.