changes to the custom time and button map removal
This commit is contained in:
parent
35da51bc74
commit
41a454440e
@ -151,7 +151,7 @@
|
||||
}
|
||||
|
||||
NSTimeInterval timeOutInterval = 60;
|
||||
if (requestParameters.customTimeoutTime && requestParameters.customTimeoutTime.integerValue > 30.0) {
|
||||
if (requestParameters.customTimeoutTime) {
|
||||
timeOutInterval = requestParameters.customTimeoutTime.floatValue;
|
||||
} else if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(timeOutIntervalForRequest:)]) {
|
||||
timeOutInterval = [[MVMCoreObject sharedInstance].globalLoadDelegate timeOutIntervalForRequest:requestParameters];
|
||||
|
||||
@ -23,9 +23,6 @@
|
||||
// The data for hte page that was loaded
|
||||
@property (nullable, strong, nonatomic) NSDictionary *pageJSON;
|
||||
|
||||
// Contains the button map
|
||||
@property (nullable, nonatomic, strong) NSDictionary *buttonMap;
|
||||
|
||||
// the modules that are needed
|
||||
@property (nullable, strong, nonatomic) NSDictionary *modulesJSON;
|
||||
|
||||
|
||||
@ -18,16 +18,10 @@
|
||||
if (self = [self initWithRequestParameters:requestParameters dataForPage:dataForPage delegate:delegate]) {
|
||||
self.pageJSON = pageJSON;
|
||||
self.modulesJSON = modulesJSON;
|
||||
|
||||
//self.buttonMap = [pageJSON dictionaryForKey:@"ButtonMap"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSDictionary *) buttonMap {
|
||||
return [self.pageJSON dictionaryForKey:@"ButtonMap"];
|
||||
}
|
||||
|
||||
- (nullable instancetype)initWithRequestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
|
||||
if (self = [self initWithDelegate:delegate]) {
|
||||
self.requestParameters = requestParameters;
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
if (self = [self initWithPageType:[actionMap stringForKey:KeyPageType] additionalModules:[actionMap array:KeyModuleList] extraParameters:[actionMap dict:KeyExtraParameters]]) {
|
||||
self.contextRoot = [actionMap string:KeyContextRoot];
|
||||
self.actionMap = actionMap;
|
||||
self.customTimeoutTime = @([actionMap integer:@"customTimeoutTime"]);
|
||||
self.customTimeoutTime = [actionMap objectForKey:@"customTimeoutTime" ofType:[NSNumber class]];
|
||||
self.openSupportPanel = [actionMap boolForKey:KeyOpenSupport];
|
||||
|
||||
// Right now server is sending default.... can't uncomment this until they remove default
|
||||
|
||||
Loading…
Reference in New Issue
Block a user