Skip to content

Commit fac29e1

Browse files
author
Florian Rieger
committed
Improved access modifiers.
1 parent 67bf22c commit fac29e1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Sources/InteractorExecuter.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import 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
}

Sources/InteractorStatusInMemoryGateway.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
class InteractorStatusInMemoryGateway: InteractorStatusGateway {
44

5-
fileprivate var running = false
5+
private var running = false
66

77
func isRunning() -> Bool {
88
return running

Sources/LazyInteractor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import Foundation
22

33
class LazyInteractor<InteractorType: Interactor>: Interactor {
44

5-
fileprivate(set) var lazyInstance: InteractorType?
6-
fileprivate let factory: ((Void) -> InteractorType)
5+
private(set) var lazyInstance: InteractorType?
6+
private let factory: ((Void) -> InteractorType)
77

88
init(factory: @escaping ((Void) -> InteractorType)) {
99
self.factory = factory

0 commit comments

Comments
 (0)