2022-07-15 09:30:16 +02:00
|
|
|
#include "Status/Wallet/WalletAccount.h"
|
|
|
|
|
2022-10-19 15:41:53 +02:00
|
|
|
namespace Status::Wallet
|
|
|
|
{
|
2022-07-15 09:30:16 +02:00
|
|
|
|
2022-10-19 15:41:53 +02:00
|
|
|
WalletAccount::WalletAccount(const GoAccounts::ChatOrWalletAccount rawAccount, QObject* parent)
|
2022-07-15 09:30:16 +02:00
|
|
|
: QObject(parent)
|
|
|
|
, m_data(std::move(rawAccount))
|
2022-10-19 15:41:53 +02:00
|
|
|
{ }
|
2022-07-15 09:30:16 +02:00
|
|
|
|
2022-10-19 15:41:53 +02:00
|
|
|
const QString& WalletAccount::name() const
|
2022-07-15 09:30:16 +02:00
|
|
|
{
|
|
|
|
return m_data.name;
|
|
|
|
}
|
|
|
|
|
2022-10-19 15:41:53 +02:00
|
|
|
const QString& WalletAccount::strAddress() const
|
2022-07-15 09:30:16 +02:00
|
|
|
{
|
|
|
|
return m_data.address.get();
|
|
|
|
}
|
|
|
|
|
|
|
|
QColor WalletAccount::color() const
|
|
|
|
{
|
|
|
|
return m_data.color;
|
|
|
|
}
|
|
|
|
|
2022-10-19 15:41:53 +02:00
|
|
|
} // namespace Status::Wallet
|