Last active
August 16, 2021 13:18
-
-
Save ElonPark/c81f13c8dff59829ddd5a1ddcecc1e4d to your computer and use it in GitHub Desktop.
UserListInteractor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: - UserListInteractor | |
final class UserListInteractor: | |
PresentableInteractor<UserListPresentable>, | |
UserListInteractable, | |
UserListPresentableListener, | |
Reactor | |
{ | |
// MARK: - Reactor | |
typealias Action = UserListPresentableAction | |
typealias State = UserListPresentableState | |
enum Mutation { | |
case setLoading(Bool) | |
case setRefresh(Bool) | |
case userListSections([UserListSectionModel]) | |
case attachUserInformationRIB | |
} | |
// MARK: - Properties | |
weak var router: UserListRouting? | |
weak var listener: UserListListener? | |
let initialState: UserListPresentableState | |
init( | |
initialState: UserListPresentableState, | |
presenter: UserListPresentable | |
) { | |
self.initialState = initialState | |
super.init(presenter: presenter) | |
presenter.listener = self | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment