mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
26 lines
604 B
Swift
26 lines
604 B
Swift
//
|
|
// BalancesRequest.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 02.11.20.
|
|
// Copyright © 2020 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct FiatCodesRequest: JSONRequest {
|
|
var httpMethod: String { "GET" }
|
|
|
|
var urlPath: String {
|
|
"/v1/balances/supported-fiat-codes"
|
|
}
|
|
|
|
typealias ResponseType = [String]
|
|
}
|
|
|
|
extension SafeClientGatewayService {
|
|
func fiatCurrencies(completion: @escaping (Result<FiatCodesRequest.ResponseType, Error>) -> Void) -> URLSessionTask? {
|
|
asyncExecute(request: FiatCodesRequest(), completion: completion)
|
|
}
|
|
}
|