com.stackmob.sdk.callback
Class StackMobQueryCallback<T extends StackMobModel>

java.lang.Object
  extended by 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).


Constructor Summary
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
 

Constructor Detail

StackMobQueryCallback

public StackMobQueryCallback()
Method Detail

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 © 2013 StackMob. All Rights Reserved.