com.stackmob.sdk.callback
Class StackMobCountCallback
java.lang.Object
com.stackmob.sdk.callback.StackMobRawCallback
com.stackmob.sdk.callback.StackMobCallback
com.stackmob.sdk.callback.StackMobCountCallback
public abstract class StackMobCountCallback
- extends StackMobCallback
A callback function meant specifically for com.stackmob.sdk.api.StackMob#count(String, StackMobRawCallback).
It functions like a regular StackMobCallback, but its success method takes a long rather than a String, saving
you some parsing.
|
Method Summary |
void |
done(com.stackmob.sdk.net.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)
override this method to receive a number as the result of a successful StackMob call |
void |
success(String count)
override this method to handles cases where a call has succeeded. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackMobCountCallback
public StackMobCountCallback()
done
public void done(com.stackmob.sdk.net.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 requestedrequestURL - the URL that was requestedrequestHeaders - the headers in the requestrequestBody - the body of the request. will be an empty string for GET, DELETE, etc...responseStatusCode - the status code of the HTTP response from StackMobresponseHeaders - the response headers from StackMobresponseBody - the response body from StackMob
success
public abstract void success(long count)
- override this method to receive a number as the result of a successful StackMob call
- Parameters:
count - the result of the count operation
success
public void success(String count)
- Description copied from class:
StackMobCallback
- override this method to handles cases where a call has succeeded.
- Specified by:
success in class StackMobCallback
- Parameters:
count - the response string received from StackMob
Copyright © 2013 StackMob. All Rights Reserved.