Function AsyncOperationResponse.wasSuccessful

Returns true if the request completed successfully, finishing what it was supposed to.

abstract bool wasSuccessful();

Should be set to false if the request was cancelled before completing or encountered an error.