|
|
@ -18,47 +18,25 @@ class SendMoneyPaymentModePresenter { |
|
|
|
|
|
|
|
// MARK: Converting entities |
|
|
|
|
|
|
|
|
|
|
|
// func convert(model: Recipient) { |
|
|
|
// let reciepient = SendMoneyRecipientViewModel() |
|
|
|
// reciepient.id = model.recipientId |
|
|
|
// reciepient.firstName = model.firstName |
|
|
|
// reciepient.middleName = model.middleName |
|
|
|
// reciepient.lastName = model.lastName |
|
|
|
// reciepient.country = model.country |
|
|
|
// reciepient.countryId = model.countryId |
|
|
|
// reciepient.state = model.state |
|
|
|
// reciepient.stateId = model.stateId |
|
|
|
// reciepient.address = model.address |
|
|
|
// reciepient.relation = model.relation |
|
|
|
// reciepient.relationId = model.relationId |
|
|
|
// reciepient.reason = model.reason |
|
|
|
// reciepient.reasonId = model.reasonId |
|
|
|
// reciepient.mobileNumber = model.mobileNumber |
|
|
|
// reciepient.email = model.email |
|
|
|
// self.view?.show(model: reciepient) |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: SendMoneyPaymentMode module interface |
|
|
|
|
|
|
|
extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeModuleInterface { |
|
|
|
func viewIsReady(for reciepient: Recipient) { |
|
|
|
self.view?.showLoading() |
|
|
|
self.interactor?.viewIsReady(for: reciepient) |
|
|
|
} |
|
|
|
// func viewIsReady() { |
|
|
|
// self.interactor?.viewIsReady() |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: SendMoneyPaymentMode interactor output interface |
|
|
|
|
|
|
|
extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeInteractorOutput { |
|
|
|
func show(model: Recipient) { |
|
|
|
self.view?.show(model: model) |
|
|
|
} |
|
|
|
|
|
|
|
func show(error: Error) { |
|
|
|
self.view?.hideLoading() |
|
|
|
} |
|
|
|
|
|
|
|
func show(model: PayoutMode) { |
|
|
|
self.show(model: model) |
|
|
|
} |
|
|
|
} |