OTOperationDependencies.m   [plain text]

#import "keychain/ot/OTOperationDependencies.h"

@implementation OTOperationDependencies
- (instancetype)initForContainer:(NSString*)containerName
contextID:(NSString*)contextID
stateHolder:(OTCuttlefishAccountStateHolder*)stateHolder
flagHandler:(id<OctagonStateFlagHandler>)flagHandler
sosAdapter:(id<OTSOSAdapter>)sosAdapter
octagonAdapter:(id<CKKSPeerProvider> _Nullable)octagonAdapter
authKitAdapter:(id<OTAuthKitAdapter>)authKitAdapter
deviceInfoAdapter:(id<OTDeviceInformationAdapter>)deviceInfoAdapter
viewManager:(CKKSViewManager*)viewManager
lockStateTracker:(CKKSLockStateTracker*)lockStateTracker
cuttlefishXPCWrapper:(CuttlefishXPCWrapper *)cuttlefishXPCWrapper
escrowRequestClass:(Class<SecEscrowRequestable>)escrowRequestClass
{
if((self = [super init])) {
_containerName = containerName;
_contextID = contextID;
_stateHolder = stateHolder;
_flagHandler = flagHandler;
_sosAdapter = sosAdapter;
_octagonAdapter = octagonAdapter;
_authKitAdapter = authKitAdapter;
_deviceInformationAdapter = deviceInfoAdapter;
_viewManager = viewManager;
_lockStateTracker = lockStateTracker;
_cuttlefishXPCWrapper = cuttlefishXPCWrapper;
_escrowRequestClass = escrowRequestClass;
}
return self;
}

@end