You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

39 lines
879 B

//
// ShowAPIPresenter.swift
// GME Remit
//
// Created by Jeongbae Kong on 2020/04/08.
//Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
//
import RxSwift
import RxCocoa
class ShowAPIPresenter: ViewModelType {
var interactor: ShowAPIInteractorInput?
var wireframe: ShowAPIWireframeInput?
struct Input {}
struct Output {
let isError: Driver<Error>
let isProgress: Driver<Bool>
}
private let disposeBag = DisposeBag()
private let progressLinker = PublishSubject<Bool>()
private let errorLinker = PublishSubject<Error>()
func transform(input: Input) -> Output {
return Output(
isError: errorLinker.asDriverOnErrorJustComplete(),
isProgress: progressLinker.asDriverOnErrorJustComplete()
)
}
}
// MARK: ShowAPI interactor output interface
extension ShowAPIPresenter: ShowAPIInteractorOutput {
}