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.
 
 
 
 

46 lines
1.1 KiB

//
// ResendInteractor.swift
// GME Remit
//
// Created by gme_2 on 18/03/2019.
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
class ResendInteractor {
// MARK: Properties
weak var output: ResendInteractorOutput?
private let service: ResendServiceType
// MARK: Initialization
init(service: ResendServiceType) {
self.service = service
}
// MARK: Converting entities
}
// MARK: Resend interactor input interface
extension ResendInteractor: ResendInteractorInput {
func fetchList(fromDate: String?, toDate: String?) {
let userName = Utility.getMyUserName()
var param: [String: String] = [:]
if let fromDate = fromDate {
param["FromDate"] = fromDate
}
if let toDate = toDate {
param["ToDate"] = toDate
}
self.service.fetchResendService(user: userName, param: param, success: { (model) in
guard let model = model else {return}
self.output?.show(model: model)
}) { (error) in
self.output?.show(error: error)
}
}
}