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.

43 lines
972 B

  1. //
  2. // InviteUserPresenter.swift
  3. // GME Remit
  4. //
  5. // Created by Armaan Shrestha on 21/08/2022.
  6. //Copyright © 2022 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class InviteUserPresenter {
  10. // MARK: Properties
  11. weak var view: InviteUserViewInterface?
  12. var interactor: InviteUserInteractorInput?
  13. var wireframe: InviteUserWireframeInput?
  14. // MARK: Converting entities
  15. }
  16. // MARK: InviteUser module interface
  17. extension InviteUserPresenter: InviteUserModuleInterface {
  18. func fetchData() {
  19. view?.progress(isShow: true)
  20. interactor?.fetchData()
  21. }
  22. }
  23. // MARK: InviteUser interactor output interface
  24. extension InviteUserPresenter: InviteUserInteractorOutput {
  25. func obtained(data: ReferralModel) {
  26. view?.progress(isShow: false)
  27. view?.obtained(data: data)
  28. }
  29. func obtained(error: String) {
  30. view?.progress(isShow: false)
  31. view?.obtained(error: error)
  32. }
  33. }