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