hide execute from RxDataLoadingModel and it children

This commit is contained in:
Ivan Smolin 2018-05-18 18:56:26 +03:00
parent d600d57260
commit 8c3c3cb7f5
2 changed files with 6 additions and 1 deletions

View File

@ -24,4 +24,9 @@ import RxSwift
/// Network operation model for RequestNetworkOperationState with Single as data source.
public final class RequestNetworkOperationModel<T>: RxNetworkOperationModel<RequestNetworkOperationState<Single<T>>> {
public override func execute() {
super.execute() // just to make it public
}
}

View File

@ -42,7 +42,7 @@ open class RxNetworkOperationModel<LoadingStateType: NetworkOperationState>: Net
self.dataSource = dataSource
}
public func execute() {
func execute() {
currentRequestDisposable?.dispose()
state = .initialLoadingState(after: state)