SHARE
TWEET

Untitled

a guest Jul 19th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protocol IUserDataOperationsUseCasesContainer
  2. {
  3.     var loadUserDataUseCase: ILoadUserDataUseCase { get }
  4.     var updateUserDataUseCase: IUpdateUserDataUseCase { get }
  5. }
  6.  
  7. final class UserDataOperationsUseCasesContainer: IUserDataOperationsUseCasesContainer
  8. {
  9.     private let userProfileRepository: IUserProfileRepository
  10.     private let userSettingsRepository: IUserSettingsRepository
  11.  
  12.     init(userProfileRepository: IUserProfileRepository, userSettingsRepository: IUserSettingsRepository) {
  13.         self.userProfileRepository = userProfileRepository
  14.         self.userSettingsRepository = userSettingsRepository
  15.     }
  16.  
  17.     lazy var loadUserDataUseCase: ILoadUserDataUseCase = {
  18.         return LoadUserDataUseCase(userProfileRepository: self.userProfileRepository,
  19.                                    userSettingsRepository: self.userSettingsRepository)
  20.     }()
  21.  
  22.     lazy var updateUserDataUseCase: IUpdateUserDataUseCase = {
  23.         return UpdateUserDataUseCase(userProfileRepository: self.userProfileRepository,
  24.                                      userSettingsRepository: self.userSettingsRepository)
  25.     }()
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top