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.

40 lines
1019 B

  1. //
  2. // SendMoneyParentInteractor.swift
  3. // GMERemittance
  4. //
  5. // Created by gme_2 on 28/08/2018.
  6. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class SendMoneyParentInteractor {
  10. // MARK: Properties
  11. weak var output: SendMoneyParentInteractorOutput?
  12. private let service: SendMoneyParentServiceType
  13. var reciepient: Recipient?
  14. var account: Account?
  15. // MARK: Initialization
  16. init(service: SendMoneyParentServiceType, reciepient: Recipient?, account: Account?) {
  17. self.service = service
  18. self.reciepient = reciepient
  19. self.account = account
  20. }
  21. // MARK: Converting entities
  22. }
  23. // MARK: SendMoneyParent interactor input interface
  24. extension SendMoneyParentInteractor: SendMoneyParentInteractorInput {
  25. func viewIsReady() {
  26. if let reciepient = self.reciepient, let acunt = self.account {
  27. self.output?.show(model: reciepient)
  28. self.output?.show(model: acunt)
  29. }
  30. }
  31. }