Calls the method succeeded() of the callback if the operation succeeded or failed() if the operation failed. @see com.libmailcore.OperationCallback
()
| 21 | @see com.libmailcore.OperationCallback |
| 22 | */ |
| 23 | protected void callCallback() |
| 24 | { |
| 25 | if (callback != null) { |
| 26 | if (errorCode() == ErrorCode.ErrorNone) { |
| 27 | callback.succeeded(); |
| 28 | } |
| 29 | else { |
| 30 | callback.failed(exception()); |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | } |