com.stackmob.sdk.callback
Class StackMobQueryCallback<T extends StackMobModel>
java.lang.Object
com.stackmob.sdk.callback.StackMobQueryCallback<T>
- Type Parameters:
T - The type of the class to receive on success
public abstract class StackMobQueryCallback<T extends StackMobModel>
- extends Object
A callback used by StackMobModel.query(Class, com.stackmob.sdk.api.StackMobQuery, StackMobQueryCallback).
|
Method Summary |
abstract void |
failure(StackMobException e)
override this method to handle errors |
abstract void |
success(List<T> result)
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 |
StackMobQueryCallback
public StackMobQueryCallback()
success
public abstract void success(List<T> result)
- override this method to handles cases where a call has succeeded.
- Parameters:
result - a list of StackMobModel subclasses returned by the query
failure
public abstract void failure(StackMobException e)
- override this method to handle errors
- Parameters:
e - a representation of the error that occurred
Copyright © 2012 StackMob. All Rights Reserved.