|
|
@ -58,7 +58,11 @@ class NotificationHistoryPresenter: ViewModelType { |
|
|
|
extension NotificationHistoryPresenter: NotificationHistoryInteractorOutput { |
|
|
|
func setNotices(with model: [NoticeModel]) { |
|
|
|
progressLinker.onNext(false) |
|
|
|
self.model.onNext(model) |
|
|
|
let filteredDate = model.sorted(by: { (noticeModel1, noticeModel2) -> Bool in |
|
|
|
return noticeModel1.date ?? "" > noticeModel2.date ?? "" |
|
|
|
}) |
|
|
|
|
|
|
|
self.model.onNext(filteredDate) |
|
|
|
} |
|
|
|
|
|
|
|
func setError(with error: Error) { |
|
|
|