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.
31 lines
857 B
31 lines
857 B
//
|
|
// ExchangeRateApiService.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by gme_2 on 22/08/2018.
|
|
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Alamofire
|
|
|
|
|
|
protocol FetchCountryCurrencyInformation: ApiServiceType {
|
|
func fetchCountryCurrencyInfo(success: @escaping ([ExchangeRateModel]) -> (), failure: @escaping (Error) -> ())
|
|
}
|
|
|
|
|
|
extension FetchCountryCurrencyInformation {
|
|
func fetchCountryCurrencyInfo(success: @escaping ([ExchangeRateModel]) -> (), failure: @escaping (Error) -> ()) {
|
|
let url = "api/v1/mobile/countriesServices"
|
|
auth.request(method: .get, url: baseUrl + url , params: nil, success: { (response: ExchangeRateContainer) in
|
|
let models = response.data
|
|
success(models)
|
|
}) { (error) in
|
|
failure(error)
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|