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

  1. //
  2. // RedeemCashPickUpInteractor.swift
  3. // GME Remit
  4. //
  5. // Created by Amrit Giri on 7/6/20.
  6. //Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class RedeemCashPickUpInteractor {
  10. // MARK: Properties
  11. weak var output: RedeemCashPickUpInteractorOutput?
  12. private let service: RedeemCashPickUpServiceType
  13. // MARK: Initialization
  14. init(service: RedeemCashPickUpServiceType) {
  15. self.service = service
  16. }
  17. // MARK: Converting entities
  18. }
  19. // MARK: RedeemCashPickUp interactor input interface
  20. extension RedeemCashPickUpInteractor: RedeemCashPickUpInteractorInput {
  21. func search(controlNo: String){
  22. self.service.searchControlNumber(controlNo: controlNo, success: { (model) in
  23. self.output?.success(model: model)
  24. }) { (error) in
  25. self.output?.show(error: error)
  26. }
  27. }
  28. }