Files
raspberry/iOS/Wallet/Sources/Resources/Service/Popup/ResourcesServicePopupStatistics.swift

31 lines
671 B
Swift

//
// ResourcesServicePopupStatistics.swift
// Wallet
//
// Created by Igor on 11.02.2021.
// Copyright © 2021 AM. All rights reserved.
//
import Foundation
extension Resources.Service.Popup {
class Statistics: Common.Service.Provider {
let performance: Resources.Service.Performance
var didUpdate: (() -> Void)?
init(account: String) {
performance = .init(account: account)
}
func fetch(_ completion: Completion.Network? = nil) {
performance.fetch { (error) in
self.didUpdate?()
completion?(error)
}
}
}
}