MIH Auth Offline First Change
This commit is contained in:
parent
a5bdee892c
commit
9d30face3d
13 changed files with 425 additions and 55 deletions
|
|
@ -206,7 +206,7 @@ class MzansiProfileHiveData {
|
|||
);
|
||||
if (responseCode != null && responseCode == 201) {
|
||||
await _modificationsQueue.delete(taskKey);
|
||||
KenLogger.success("Add User Consent to MIH Server");
|
||||
KenLogger.success("Add User Consent to MIH Cloud");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -217,4 +217,8 @@ class MzansiProfileHiveData {
|
|||
bool isModificationsNotEmpty() {
|
||||
return _modificationsQueue.values.toList().isNotEmpty;
|
||||
}
|
||||
|
||||
bool hasCachedProfile() {
|
||||
return _userBox.containsKey(kUserKey);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ class MzansiWalletHiveData {
|
|||
);
|
||||
if (responseCode != null && responseCode == 201) {
|
||||
await _modificationsQueue.delete(taskKey);
|
||||
KenLogger.success("Add New Local Card to MIH Server");
|
||||
KenLogger.success("Add New Local Card to MIH Cloud");
|
||||
} else {
|
||||
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused");
|
||||
return false;
|
||||
|
|
@ -258,7 +258,7 @@ class MzansiWalletHiveData {
|
|||
);
|
||||
if (responseCode != null && responseCode == 200) {
|
||||
await _modificationsQueue.delete(taskKey);
|
||||
KenLogger.success("Delete Local Card from MIH Server");
|
||||
KenLogger.success("Delete Local Card from MIH Cloud");
|
||||
} else {
|
||||
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused");
|
||||
return false;
|
||||
|
|
@ -275,7 +275,7 @@ class MzansiWalletHiveData {
|
|||
);
|
||||
if (responseCode != null && responseCode == 200) {
|
||||
await _modificationsQueue.delete(taskKey);
|
||||
KenLogger.success("Update Local Card from MIH Server");
|
||||
KenLogger.success("Update Local Card from MIH Cloud");
|
||||
} else {
|
||||
KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue