customTimeoutTime

This commit is contained in:
Suresh, Kamlesh 2018-10-03 15:25:25 -04:00
parent 0f4b084880
commit 0423937e8c
2 changed files with 3 additions and 1 deletions

View File

@ -151,7 +151,7 @@
}
NSTimeInterval timeOutInterval = 60;
if (requestParameters.customTimeoutTime) {
if (requestParameters.customTimeoutTime && requestParameters.customTimeoutTime.integerValue > TimeOutTimeProd) {
timeOutInterval = requestParameters.customTimeoutTime.floatValue;
} else if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(timeOutIntervalForRequest:)]) {
timeOutInterval = [[MVMCoreObject sharedInstance].globalLoadDelegate timeOutIntervalForRequest:requestParameters];

View File

@ -67,6 +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.openSupportPanel = [actionMap boolForKey:KeyOpenSupport];
// Right now server is sending default.... can't uncomment this until they remove default
@ -132,6 +133,7 @@
copyObject.alternateBaseURL = self.alternateBaseURL;
copyObject.openSupportPanel = self.openSupportPanel;
copyObject.imageData = self.imageData;
copyObject.customTimeoutTime = self.customTimeoutTime;
return copyObject;
}