| | |
| | | import UIKit |
| | | import RxSwift |
| | | |
| | | let Refresh_MarketExchange_Noti = Notification.Name.init("Refresh_MarketExchange_Noti") |
| | | |
| | | class ExchangeRecordViewModel:RefreshModel<ExchangeRecordModel>{ |
| | | override func api() -> (Observable<BaseResponse<[ExchangeRecordModel]>>)? { |
| | | return Services.exchangeRecord() |
| | |
| | | make.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom).offset(-5) |
| | | } |
| | | } |
| | | |
| | | override func setRx() { |
| | | NotificationCenter.default.rx.notification(Refresh_MarketExchange_Noti).take(until: self.rx.deallocated).subscribe(onNext: {_ in |
| | | self.viewModel.beginRefresh() |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | } |
| | | |
| | | |