KeyClientParameters

This commit is contained in:
Suresh, Kamlesh 2021-01-21 11:00:37 -05:00
parent b6e1e84b52
commit 93a590fedf
4 changed files with 9 additions and 5 deletions

View File

@ -13,7 +13,7 @@ public extension MVMCoreActionHandler {
/// Iterates through the clientParameters list. Gets values from the individual handlers and attaches the parameters to extraParameters.
@objc func setClientParameter(with actionMap: [String: Any]?, completionHandler: @escaping ([String : Any]?) -> ()) {
guard let actionMapWithClientParameters = actionMap, let clientParameters = actionMapWithClientParameters.optionalDictionaryForKey("clientParameters") else {
guard let actionMapWithClientParameters = actionMap, let clientParameters = actionMapWithClientParameters.optionalDictionaryForKey(KeyClientParameters) else {
completionHandler(actionMap)
return
}

View File

@ -129,7 +129,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
};
// BAU dictionary comparsion breaks if client paramters sets the dictionarr. For now we will set client paramters only when its sent in the action map
if ([actionInformation dict:@"clientParameters"]) {
if ([actionInformation dict:KeyClientParameters]) {
[self setClientParameterWith:actionInformation completionHandler:performAction];
} else {
performAction(actionInformation);
@ -299,7 +299,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
};
// BAU dictionary comparsion breaks if client paramters sets the dictionarr. For now we will set client paramters only when its sent in the action map
if ([actionInformation dict:@"clientParameters"]) {
if ([actionInformation dict:KeyClientParameters]) {
[self setClientParameterWith:actionInformation completionHandler:performAction];
} else {
performAction(actionInformation);
@ -454,7 +454,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
};
// BAU dictionary comparsion breaks if client paramters sets the dictionarr. For now we will set client paramters only when its sent in the action map
if ([actionInformation dict:@"clientParameters"]) {
if ([actionInformation dict:KeyClientParameters]) {
[self setClientParameterWith:actionInformation completionHandler:performAction];
} else {
performAction(actionInformation);
@ -578,7 +578,7 @@ NSString * const KeyActionTypeOpen = @"openPage";
};
// BAU dictionary comparsion breaks if client paramters sets the dictionarr. For now we will set client paramters only when its sent in the action map
if ([actionInformation dict:@"clientParameters"]) {
if ([actionInformation dict:KeyClientParameters]) {
[self setClientParameterWith:actionInformation completionHandler:performAction];
} else {
performAction(actionInformation);

View File

@ -51,6 +51,8 @@ extern NSString * const KeyContextRoot;
extern NSString * const KeyType;
extern NSString * const KeyMVMRC;
extern NSString * const KeyClientParameters;
#pragma mark - JSON Values
// Server driven response type

View File

@ -51,6 +51,8 @@ NSString * const KeyContextRoot = @"appContext";
NSString * const KeyType = @"type";
NSString * const KeyMVMRC = @"LaunchMVMRC";
NSString * const KeyClientParameters = @"clientParameters";
#pragma mark - JSON Values
// Server driven response type