KeyClientParameters
This commit is contained in:
parent
b6e1e84b52
commit
93a590fedf
@ -13,7 +13,7 @@ public extension MVMCoreActionHandler {
|
|||||||
/// Iterates through the clientParameters list. Gets values from the individual handlers and attaches the parameters to extraParameters.
|
/// 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]?) -> ()) {
|
@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)
|
completionHandler(actionMap)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
// 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];
|
[self setClientParameterWith:actionInformation completionHandler:performAction];
|
||||||
} else {
|
} else {
|
||||||
performAction(actionInformation);
|
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
|
// 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];
|
[self setClientParameterWith:actionInformation completionHandler:performAction];
|
||||||
} else {
|
} else {
|
||||||
performAction(actionInformation);
|
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
|
// 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];
|
[self setClientParameterWith:actionInformation completionHandler:performAction];
|
||||||
} else {
|
} else {
|
||||||
performAction(actionInformation);
|
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
|
// 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];
|
[self setClientParameterWith:actionInformation completionHandler:performAction];
|
||||||
} else {
|
} else {
|
||||||
performAction(actionInformation);
|
performAction(actionInformation);
|
||||||
|
|||||||
@ -51,6 +51,8 @@ extern NSString * const KeyContextRoot;
|
|||||||
extern NSString * const KeyType;
|
extern NSString * const KeyType;
|
||||||
extern NSString * const KeyMVMRC;
|
extern NSString * const KeyMVMRC;
|
||||||
|
|
||||||
|
extern NSString * const KeyClientParameters;
|
||||||
|
|
||||||
#pragma mark - JSON Values
|
#pragma mark - JSON Values
|
||||||
|
|
||||||
// Server driven response type
|
// Server driven response type
|
||||||
|
|||||||
@ -51,6 +51,8 @@ NSString * const KeyContextRoot = @"appContext";
|
|||||||
NSString * const KeyType = @"type";
|
NSString * const KeyType = @"type";
|
||||||
NSString * const KeyMVMRC = @"LaunchMVMRC";
|
NSString * const KeyMVMRC = @"LaunchMVMRC";
|
||||||
|
|
||||||
|
NSString * const KeyClientParameters = @"clientParameters";
|
||||||
|
|
||||||
#pragma mark - JSON Values
|
#pragma mark - JSON Values
|
||||||
|
|
||||||
// Server driven response type
|
// Server driven response type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user