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
779 B

  1. //
  2. // HotLinePresenter.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon Devik Kim on 23/05/2019.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class HotLinePresenter {
  10. // MARK: Properties
  11. weak var view: HotLineViewInterface?
  12. var interactor: HotLineInteractorInput?
  13. var wireframe: HotLineWireframeInput?
  14. }
  15. // MARK: HotLine module interface
  16. extension HotLinePresenter: HotLineModuleInterface {
  17. func fetchHotLines() {
  18. interactor?.fetchHotLines()
  19. }
  20. }
  21. // MARK: HotLine interactor output interface
  22. extension HotLinePresenter: HotLineInteractorOutput {
  23. func setHotLine(with model: [HotLine]?) {
  24. view?.setHotLine(with: model)
  25. }
  26. func setError(with error: Error) {
  27. view?.setError(with: error)
  28. }
  29. }