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.
|
|
// // WalletStatementInteractor.swift // GMERemittance // // Created by gme_2 on 03/10/2018. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved. //
import Foundation
class WalletStatementInteractor { // MARK: Properties weak var output: WalletStatementInteractorOutput? private let service: WalletStatementServiceType // MARK: Initialization init(service: WalletStatementServiceType) { self.service = service }
// MARK: Converting entities }
// MARK: WalletStatement interactor input interface
extension WalletStatementInteractor: WalletStatementInteractorInput { func fetchWalletSatement(fromDate: String?, toDate: String?) { let userName = Utility.getMyUserName() var param: [String: String] = [:] if let from = fromDate { param["FromDate"] = from } if let to = toDate { param["ToDate"] = to } let parameters = (param.isEmpty ?? true) ? nil : param self.service.fetchWalletStatement(user: userName, param: parameters, success: { (model) in self.output?.show(models: model) }) { (error) in self.output?.show(error: error) } } }
|