Browse Source

loading added in childs module interface

pull/1/head
gme_2 6 years ago
parent
commit
c057d6842f
  1. 9
      GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift
  2. 3
      GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift
  3. 8
      GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift
  4. 2
      GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift
  5. 12
      GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift
  6. 3
      GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift

9
GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift

@ -39,6 +39,15 @@ class SendMoneyExchangeRateViewController: UIViewController {
// MARK: SendMoneyExchangeRateViewInterface // MARK: SendMoneyExchangeRateViewInterface
extension SendMoneyExchangeRateViewController: SendMoneyExchangeRateViewInterface { extension SendMoneyExchangeRateViewController: SendMoneyExchangeRateViewInterface {
func show(error: String) {
self.alert(message: error)
}
func showLoading() {
self.hudDelegate?.showLoading()
}
func hideLoading() {
self.hudDelegate?.hideLoading()
}
} }

3
GMERemittance/Module/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewInterface.swift

@ -7,4 +7,7 @@
// //
protocol SendMoneyExchangeRateViewInterface: class { protocol SendMoneyExchangeRateViewInterface: class {
func show(error: String)
func showLoading()
func hideLoading()
} }

8
GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

@ -56,4 +56,12 @@ extension SendMoneyPaymentModeViewController: SendMoneyPaymentModeViewInterface
func show(error: String) { func show(error: String) {
self.alert(message: error) self.alert(message: error)
} }
func showLoading() {
self.hudDelegate?.showLoading()
}
func hideLoading() {
self.hudDelegate?.hideLoading()
}
} }

2
GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift

@ -9,4 +9,6 @@
protocol SendMoneyPaymentModeViewInterface: class { protocol SendMoneyPaymentModeViewInterface: class {
func show(model: Recipient) func show(model: Recipient)
func show(error: String) func show(error: String)
func showLoading()
func hideLoading()
} }

12
GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift

@ -38,7 +38,17 @@ class SendMoneyVerificationViewController: UIViewController {
// MARK: SendMoneyVerificationViewInterface // MARK: SendMoneyVerificationViewInterface
extension SendMoneyVerificationViewController: SendMoneyVerificationViewInterface { extension SendMoneyVerificationViewController: SendMoneyVerificationViewInterface {
func show(error: String) {
self.alert(message: error)
}
func showLoading() {
self.hudDelegate?.showLoading()
}
func hideLoading() {
self.hudDelegate?.hideLoading()
}
} }

3
GMERemittance/Module/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewInterface.swift

@ -7,4 +7,7 @@
// //
protocol SendMoneyVerificationViewInterface: class { protocol SendMoneyVerificationViewInterface: class {
func show(error: String)
func showLoading()
func hideLoading()
} }
Loading…
Cancel
Save