public interface PCProcessOperationCallback extends PCTaskCallback
PCOperationsManager.processOperation(PCUser, PCOperation, List, List, PCProcessOperationCallback)
and related methods.
While processing an operation one of the following scenarios may appear:error(PCError)
is invokederror(PCNetError)
is invoked.error(PCOperation, HashMap)
is invoked.success(PCOperation)
invoked.Modifier and Type | Method and Description |
---|---|
void |
error(PCError error)
An error which occurred before the interaction with server (e.g. passowrd is required but was not submitted)
|
void |
error(PCNetError error)
An error which indicates that the connection with server was failed (e.g. internet connection stopped or
authorization failed)
|
void |
error(PCOperation operation,
java.util.HashMap<java.lang.String,PCNetError> failedTransactions)
An error pointing at the case when the request is successful but some of transactions (possibly, all) were not
processed due to some reason.
|
void |
success(PCOperation operation)
Called when all passed transactions were successfully processed
|
onTaskCancelled, onTaskCreated
void success(PCOperation operation)
operation
- The processed operation with rest of transactions which remain to be confirmed or declined.
If all transactions were processed, the operation with empty list of transactions is returnedvoid error(PCError error)
error
- PCError
of corresponding typevoid error(PCNetError error)
error
- PCNetError
of corresponding typevoid error(PCOperation operation, java.util.HashMap<java.lang.String,PCNetError> failedTransactions)
operation
- The processed operation with rest of transactions which remain to be confirmed or declined.
If all transactions were processed, the operation with empty list of transactions is returnedfailedTransactions
- Map of transaction ids and corresponding errors occurred while processing