11import Foundation
22
3- open class InteractorExecuter {
3+ class InteractorExecuter {
44
5- fileprivate var interactors = Dictionary < String , AnyObject > ( )
5+ private var interactors = Dictionary < String , AnyObject > ( )
66
77 // MARK: Register
88
9- open func registerInteractor< InteractorProtocol: Interactor , Response>
9+ func registerInteractor< InteractorProtocol: Interactor , Response>
1010 ( _ interactor: InteractorProtocol , request: InteractorRequest < Response > )
1111 {
1212 let key = String ( describing: request)
@@ -15,7 +15,7 @@ open class InteractorExecuter {
1515
1616 // MARK: Execute
1717
18- open func execute< Request: ErrorRequest > ( _ request: Request ) {
18+ func execute< Request: ErrorRequest > ( _ request: Request ) {
1919 let key = String ( describing: request)
2020 let optionalValue = interactors [ key]
2121
@@ -34,17 +34,17 @@ open class InteractorExecuter {
3434
3535 // MARK: Error Handling
3636
37- fileprivate func fireErrorOnRequest( _ request: ErrorRequest , errorMessage: String ) {
37+ private func fireErrorOnRequest( _ request: ErrorRequest , errorMessage: String ) {
3838 let error = InteractorError ( message: errorMessage)
3939 request. onError ? ( error)
4040 }
4141
42- fileprivate func fireIntactorNotRegisterdError( _ request: ErrorRequest ) {
42+ private func fireIntactorNotRegisterdError( _ request: ErrorRequest ) {
4343 let message = " ACInteractor.ACInteractorExcuter: No Interactor is registered for this request! "
4444 fireErrorOnRequest ( request, errorMessage: message)
4545 }
4646
47- fileprivate func fireIntactorMismatchError( _ request: ErrorRequest ) {
47+ private func fireIntactorMismatchError( _ request: ErrorRequest ) {
4848 let message = " ACInteractor.ACInteractorExcuter: Request does not match execute function of registered Interactor! "
4949 fireErrorOnRequest ( request, errorMessage: message)
5050 }
0 commit comments