customTimeoutTime
This commit is contained in:
parent
0f4b084880
commit
0423937e8c
@ -151,7 +151,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
NSTimeInterval timeOutInterval = 60;
|
NSTimeInterval timeOutInterval = 60;
|
||||||
if (requestParameters.customTimeoutTime) {
|
if (requestParameters.customTimeoutTime && requestParameters.customTimeoutTime.integerValue > TimeOutTimeProd) {
|
||||||
timeOutInterval = requestParameters.customTimeoutTime.floatValue;
|
timeOutInterval = requestParameters.customTimeoutTime.floatValue;
|
||||||
} else if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(timeOutIntervalForRequest:)]) {
|
} else if ([[MVMCoreObject sharedInstance].globalLoadDelegate respondsToSelector:@selector(timeOutIntervalForRequest:)]) {
|
||||||
timeOutInterval = [[MVMCoreObject sharedInstance].globalLoadDelegate timeOutIntervalForRequest:requestParameters];
|
timeOutInterval = [[MVMCoreObject sharedInstance].globalLoadDelegate timeOutIntervalForRequest:requestParameters];
|
||||||
|
|||||||
@ -67,6 +67,7 @@
|
|||||||
if (self = [self initWithPageType:[actionMap stringForKey:KeyPageType] additionalModules:[actionMap array:KeyModuleList] extraParameters:[actionMap dict:KeyExtraParameters]]) {
|
if (self = [self initWithPageType:[actionMap stringForKey:KeyPageType] additionalModules:[actionMap array:KeyModuleList] extraParameters:[actionMap dict:KeyExtraParameters]]) {
|
||||||
self.contextRoot = [actionMap string:KeyContextRoot];
|
self.contextRoot = [actionMap string:KeyContextRoot];
|
||||||
self.actionMap = actionMap;
|
self.actionMap = actionMap;
|
||||||
|
self.customTimeoutTime = @([actionMap integer:@"customTimeoutTime"]);
|
||||||
self.openSupportPanel = [actionMap boolForKey:KeyOpenSupport];
|
self.openSupportPanel = [actionMap boolForKey:KeyOpenSupport];
|
||||||
|
|
||||||
// Right now server is sending default.... can't uncomment this until they remove default
|
// Right now server is sending default.... can't uncomment this until they remove default
|
||||||
@ -132,6 +133,7 @@
|
|||||||
copyObject.alternateBaseURL = self.alternateBaseURL;
|
copyObject.alternateBaseURL = self.alternateBaseURL;
|
||||||
copyObject.openSupportPanel = self.openSupportPanel;
|
copyObject.openSupportPanel = self.openSupportPanel;
|
||||||
copyObject.imageData = self.imageData;
|
copyObject.imageData = self.imageData;
|
||||||
|
copyObject.customTimeoutTime = self.customTimeoutTime;
|
||||||
return copyObject;
|
return copyObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user