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.
41 lines
915 B
41 lines
915 B
//
|
|
// InternationalTopupInteractor.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon James Kim on 2019/10/30.
|
|
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class InternationalTopupInteractor {
|
|
|
|
// MARK: Properties
|
|
|
|
weak var output: InternationalTopupInteractorOutput?
|
|
private let service: InternationalTopupServiceType
|
|
|
|
// MARK: Initialization
|
|
|
|
init(service: InternationalTopupServiceType) {
|
|
self.service = service
|
|
}
|
|
|
|
}
|
|
|
|
// MARK: InternationalTopup interactor input interface
|
|
|
|
extension InternationalTopupInteractor: InternationalTopupInteractorInput {
|
|
func fetchCardList(type: String, mobile: String) {
|
|
service.fetchCardList(
|
|
type: type,
|
|
mobile: mobile,
|
|
success: {[weak self] in
|
|
self?.output?.setModel(with: $0)
|
|
},
|
|
failure: {[weak self] in
|
|
self?.output?.setError(with: $0)
|
|
}
|
|
)
|
|
}
|
|
}
|