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.

37 lines
873 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. // MARK: Initialization
  15. init(service: SendMoneyParentServiceType, reciepient: Recipient?) {
  16. self.service = service
  17. self.reciepient = reciepient
  18. }
  19. // MARK: Converting entities
  20. }
  21. // MARK: SendMoneyParent interactor input interface
  22. extension SendMoneyParentInteractor: SendMoneyParentInteractorInput {
  23. func viewIsReady() {
  24. if let reciepient = self.reciepient {
  25. self.output?.show(model: reciepient)
  26. }
  27. }
  28. }