2022-02-14 14:38:41 +00:00
|
|
|
#ifndef WALLETACCOUNTSSERVICE_H
|
|
|
|
#define WALLETACCOUNTSSERVICE_H
|
|
|
|
|
|
|
|
#include <QMap>
|
2022-02-21 18:03:38 +00:00
|
|
|
#include <QString>
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
#include "service_interface.h"
|
2022-02-21 18:03:38 +00:00
|
|
|
#include "wallet_account.h"
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
namespace Wallets
|
|
|
|
{
|
|
|
|
|
|
|
|
class Service : public ServiceInterface
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
void fetchAccounts();
|
|
|
|
|
|
|
|
QMap<QString, WalletAccountDto> m_walletAccounts;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Service();
|
|
|
|
~Service() = default;
|
|
|
|
|
|
|
|
void init() override;
|
|
|
|
QList<WalletAccountDto> getWalletAccounts() override;
|
|
|
|
};
|
|
|
|
} // namespace Wallets
|
|
|
|
|
|
|
|
#endif // WALLETACCOUNTSERVICE_H
|