Interface MGAsyncResult<T>


public interface MGAsyncResult<T>
MGAsyncResult provides the result of the task that is posted by MGAbstractAsyncHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the numeric error code for the failed operation.
    Returns the result object of the operation.
    boolean
    Defines if the operation executed is successfully.
  • Method Details

    • isSuccessful

      boolean isSuccessful()
      Defines if the operation executed is successfully.
      Returns:
      Returns true if the operation is executed successfully. Otherwise, a false value is returned.
    • getResult

      T getResult()
      Returns the result object of the operation.
      Returns:
      The result of the operation.
    • getErrorCode

      MobileGatewayError getErrorCode()
      Returns the numeric error code for the failed operation. If the operation is successful, this will return zero.
      Returns:
      MobileGatewayError - indicates the error object for the particular error occurred.