Review changes

This commit is contained in:
Pfeil, Scott Robert 2020-11-04 11:03:32 -05:00
parent d6063be428
commit d8970f0072
3 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public extension MVMCoreUITopAlertView {
// Show any new top alert.
guard let responseJSON = loadObject.responseJSON,
let json = responseJSON.optionalDictionaryForKey("TopNotification"),
let json = responseJSON.optionalDictionaryForKey(KeyTopAlert),
let model = decodeTopNotification(with: json, delegateObject: getDelegateObject()) else { return }
showTopAlert(with: model)
}

View File

@ -49,6 +49,9 @@ extern NSString * const KeyActionTypeAlert;
extern NSString * const KeyActionTypeTopAlert;
extern NSString * const KeyActionTypeCollapseNotification;
/// Key for molecular top notification architecture.
extern NSString * const KeyTopAlert;
#pragma mark - Values
extern NSString * const StringY;

View File

@ -47,6 +47,8 @@ NSString * const KeyActionTypeAlert = @"alert";
NSString * const KeyActionTypeTopAlert = @"topAlert";
NSString * const KeyActionTypeCollapseNotification = @"collapseNotification";
NSString * const KeyTopAlert = @"TopNotification";
#pragma mark - Values
NSString * const StringY = @"Y";