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.
47 lines
1.1 KiB
47 lines
1.1 KiB
//
|
|
// LoyalityPointsPresenter.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Armaan Shrestha on 12/12/2022.
|
|
//Copyright © 2022 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class LoyalityPointsPresenter {
|
|
|
|
// MARK: Properties
|
|
|
|
weak var view: LoyalityPointsViewInterface?
|
|
var interactor: LoyalityPointsInteractorInput?
|
|
var wireframe: LoyalityPointsWireframeInput?
|
|
|
|
// MARK: Converting entities
|
|
}
|
|
|
|
// MARK: LoyalityPoints module interface
|
|
|
|
extension LoyalityPointsPresenter: LoyalityPointsModuleInterface {
|
|
func viewInitiated() {
|
|
view?.progress(isShow: true)
|
|
interactor?.viewInitiated()
|
|
}
|
|
|
|
func openSendMoneyView() {
|
|
wireframe?.openSendMoneyView()
|
|
}
|
|
}
|
|
|
|
// MARK: LoyalityPoints interactor output interface
|
|
|
|
extension LoyalityPointsPresenter: LoyalityPointsInteractorOutput {
|
|
func obtained(data: LoyalityPointsModel) {
|
|
view?.progress(isShow: false)
|
|
view?.obtained(data: data)
|
|
}
|
|
|
|
func obtained(error: String) {
|
|
view?.progress(isShow: false)
|
|
view?.obtained(error: error)
|
|
}
|
|
}
|