diff --git a/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift b/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift index 7b5e4211..0de5dd8a 100644 --- a/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift +++ b/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift @@ -39,6 +39,15 @@ class SendMoneyExchangeRateViewController: UIViewController { // MARK: SendMoneyExchangeRateViewInterface extension SendMoneyExchangeRateViewController: SendMoneyExchangeRateViewInterface { + func show(error: String) { + self.alert(message: error) + } + func showLoading() { + self.hudDelegate?.showLoading() + } + func hideLoading() { + self.hudDelegate?.hideLoading() + } } diff --git a/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift b/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift index 3247d5c9..7e82febb 100644 --- a/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift +++ b/GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift @@ -7,4 +7,7 @@ // protocol SendMoneyExchangeRateViewInterface: class { + func show(error: String) + func showLoading() + func hideLoading() } diff --git a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift index 30d3c4ea..7d90b987 100644 --- a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift +++ b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift @@ -56,4 +56,12 @@ extension SendMoneyPaymentModeViewController: SendMoneyPaymentModeViewInterface func show(error: String) { self.alert(message: error) } + + func showLoading() { + self.hudDelegate?.showLoading() + } + + func hideLoading() { + self.hudDelegate?.hideLoading() + } } diff --git a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift index 6479e981..be66bc25 100644 --- a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift +++ b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift @@ -9,4 +9,6 @@ protocol SendMoneyPaymentModeViewInterface: class { func show(model: Recipient) func show(error: String) + func showLoading() + func hideLoading() } diff --git a/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift b/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift index d788596f..e4351136 100644 --- a/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift +++ b/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift @@ -38,7 +38,17 @@ class SendMoneyVerificationViewController: UIViewController { // MARK: SendMoneyVerificationViewInterface extension SendMoneyVerificationViewController: SendMoneyVerificationViewInterface { - + func show(error: String) { + self.alert(message: error) + } + + func showLoading() { + self.hudDelegate?.showLoading() + } + + func hideLoading() { + self.hudDelegate?.hideLoading() + } } diff --git a/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift b/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift index e25543c1..90df65ec 100644 --- a/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift +++ b/GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift @@ -7,4 +7,7 @@ // protocol SendMoneyVerificationViewInterface: class { + func show(error: String) + func showLoading() + func hideLoading() }