2022-02-14 14:38:41 +00:00
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
#include "controller.h"
|
|
|
|
|
2022-02-16 21:51:04 +00:00
|
|
|
namespace Modules::Main::Wallet::Accounts
|
2022-02-14 14:38:41 +00:00
|
|
|
{
|
2022-02-21 18:03:38 +00:00
|
|
|
Controller::Controller(std::shared_ptr<Wallets::ServiceInterface> walletService, QObject* parent)
|
|
|
|
: m_walletServicePtr(walletService)
|
|
|
|
, QObject(parent)
|
2022-02-14 14:38:41 +00:00
|
|
|
{ }
|
|
|
|
|
2022-02-21 18:03:38 +00:00
|
|
|
void Controller::init() { }
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
QList<Wallets::WalletAccountDto> Controller::getWalletAccounts()
|
|
|
|
{
|
|
|
|
QList<Wallets::WalletAccountDto> wallet_accounts;
|
2022-02-21 18:03:38 +00:00
|
|
|
if(nullptr != m_walletServicePtr) wallet_accounts = m_walletServicePtr->getWalletAccounts();
|
2022-02-14 14:38:41 +00:00
|
|
|
|
|
|
|
return wallet_accounts;
|
|
|
|
}
|
2022-02-16 21:51:04 +00:00
|
|
|
} // namespace Modules::Main::Wallet::Accounts
|