remove deprecated MVMCoreLoadObject code
This commit is contained in:
parent
dcbaa316ac
commit
e7e829bb44
@ -46,7 +46,6 @@
|
|||||||
@property (nullable, strong, nonatomic) NSDictionary *dataForPage;
|
@property (nullable, strong, nonatomic) NSDictionary *dataForPage;
|
||||||
|
|
||||||
// The load delegate
|
// The load delegate
|
||||||
@property (nullable, weak, nonatomic) NSObject <MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *delegate __deprecated;
|
|
||||||
@property (nullable, strong, nonatomic) DelegateObject *delegateObject;
|
@property (nullable, strong, nonatomic) DelegateObject *delegateObject;
|
||||||
|
|
||||||
// The operation that is loading.
|
// The operation that is loading.
|
||||||
@ -70,12 +69,4 @@
|
|||||||
// Returns whether the load will extend the app session timer based on the response provided by the server.
|
// Returns whether the load will extend the app session timer based on the response provided by the server.
|
||||||
- (BOOL)extendsAppSession;
|
- (BOOL)extendsAppSession;
|
||||||
|
|
||||||
#pragma mark - Deprecated
|
|
||||||
|
|
||||||
- (nullable instancetype)initWithPageJSON:(nullable NSDictionary *)pageJSON modulesJSON:(nullable NSDictionary *)modulesJSON requestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate __deprecated;
|
|
||||||
|
|
||||||
- (nullable instancetype)initWithRequestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate __deprecated;
|
|
||||||
|
|
||||||
- (nullable instancetype)initWithDelegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate __deprecated;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -68,44 +68,4 @@
|
|||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Deprecated
|
|
||||||
|
|
||||||
- (void)setDelegateObject:(DelegateObject *)delegateObject {
|
|
||||||
_delegateObject = delegateObject;
|
|
||||||
_delegate = delegateObject.loadDelegate;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setDelegate:(NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *)delegate {
|
|
||||||
_delegate = delegate;
|
|
||||||
if ([delegate respondsToSelector:@selector(delegateObject)]) {
|
|
||||||
_delegateObject = [delegate performSelector:@selector(delegateObject)];
|
|
||||||
} else {
|
|
||||||
_delegateObject = [DelegateObject createWithDelegateForAll:delegate];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- (nullable instancetype)initWithPageJSON:(nullable NSDictionary *)pageJSON modulesJSON:(nullable NSDictionary *)modulesJSON requestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
|
|
||||||
|
|
||||||
if (self = [self initWithRequestParameters:requestParameters dataForPage:dataForPage delegate:delegate]) {
|
|
||||||
self.pageJSON = pageJSON;
|
|
||||||
self.modulesJSON = modulesJSON;
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (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;
|
|
||||||
self.dataForPage = dataForPage;
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (nullable instancetype)initWithDelegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
|
|
||||||
if (self = [super init]) {
|
|
||||||
self.delegate = delegate;
|
|
||||||
}
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user