com.qualcommlabs.usercontext
Interface Callback<T>

Type Parameters:
T - the generic type

public interface Callback<T>

The Interface Callback is passed to most Connector calls. When passed into a Connector's methods, these callback objects will be called back in either the successful case or the failure case. In the case of success, the an object of type T is returned to the callback. In the case of a failure, both a failure status code and an error message is passed to the callback object.


Method Summary
 void failure(int statusCode, String errorMessage)
          Failure.
 void success(T responseObject)
          Success.
 

Method Detail

success

void success(T responseObject)
Success.

Parameters:
responseObject - the response object

failure

void failure(int statusCode,
             String errorMessage)
Failure.

Parameters:
statusCode - the status code
errorMessage - the error message


Copyright © 2014 Qualcomm Retail Solutions, Inc.. All Rights Reserved.