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.
 
 
 
 

38 lines
893 B

//
// InviteUserInteractor.swift
// GME Remit
//
// Created by Armaan Shrestha on 21/08/2022.
//Copyright © 2022 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
class InviteUserInteractor {
// MARK: Properties
weak var output: InviteUserInteractorOutput?
private let service: InviteUserServiceType
// MARK: Initialization
init(service: InviteUserServiceType) {
self.service = service
}
// MARK: Converting entities
}
// MARK: InviteUser interactor input interface
extension InviteUserInteractor: InviteUserInteractorInput {
func fetchData() {
service.fetchReferralList { referral in
self.output?.obtained(data: referral)
} failure: { error in
print(error.localizedDescription)
self.output?.obtained(error: error.localizedDescription)
}
}
}