com.stackmob.sdk.callback
Class StackMobModelCallback

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

public abstract class StackMobModelCallback
extends StackMobCallback

A simple callback suitable for many StackMobModel methods. The success call takes no parameters since any new information will be reflected in the model class


Field Summary
 
Fields inherited from class com.stackmob.sdk.callback.StackMobRawCallback
requestBody, requestHeaders, requestURL, requestVerb, responseBody, responseHeaders, responseStatusCode, retriesRemaining
 
Constructor Summary
StackMobModelCallback()
           
 
Method Summary
abstract  void success()
          override this method to be notified of success after a callback.
 void success(String count)
          override this method to handles cases where a call has succeeded.
 
Methods inherited from class com.stackmob.sdk.callback.StackMobCallback
circularRedirect, done, failure, temporaryPasswordResetRequired, unsent
 
Methods inherited from class com.stackmob.sdk.callback.StackMobRawCallback
getRetriesRemaining, getTotalNumberOfItemsFromContentRange, getTotalObjectCountFromPagination, redirected, retry, setDone, setRetriesRemaining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackMobModelCallback

public StackMobModelCallback()
Method Detail

success

public abstract void success()
override this method to be notified of success after a callback. Any changes caused by the action will now be reflected in the model class and/or on the server.


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.