CLOUD: Refactor Request
Added ErrorResponse and ErrorCallback. Each Request now has an ErrorCallback, which should be called instead of usual callback in case of failure.
This commit is contained in:
parent
001b417f33
commit
eb63b50b7f
29 changed files with 652 additions and 507 deletions
|
@ -110,9 +110,9 @@ Storage *Manager::getCurrentStorage() {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
void Manager::syncSaves(Storage::BoolCallback callback) {
|
||||
void Manager::syncSaves(Storage::BoolCallback callback, Networking::ErrorCallback errorCallback) {
|
||||
Storage *storage = getCurrentStorage();
|
||||
if (storage) storage->syncSaves(callback);
|
||||
if (storage) storage->syncSaves(callback, errorCallback);
|
||||
}
|
||||
|
||||
} // End of namespace Cloud
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue