status-desktop/src-cpp/app_service/include/wallet_accounts/wallet_account.h

33 lines
632 B
C
Raw Normal View History

#ifndef WALLETACCOUNTDTO_H
#define WALLETACCOUNTDTO_H
#include <QJsonValue>
#include <QString>
#include <QVector>
#include "wallet_token.h"
namespace Wallets
{
class WalletAccountDto
{
public:
QString name;
QString address;
QString path;
QString color;
QString publicKey;
QString walletType;
bool isWallet;
bool isChat;
QVector<WalletTokenDto> tokens;
};
WalletAccountDto toWalletAccountDto(const QJsonValue jsonObj);
//WalletAccountDto getCurrencyBalance*(): float =
// return self.tokens.map(t => t.currencyBalance).foldl(a + b, 0.0)
} // namespace Wallet
#endif // WALLETACCOUNTDTO_H