using StockFin.Models;

namespace StockFin.ViewModels
{
    public class AccountDetailsViewModel
    {
        public Account Account { get; init; } = null!;

        public IReadOnlyList<Statement> Statements { get; init; } = [];

        public IReadOnlyList<Transaction> Transactions { get; init; } = [];

        public IReadOnlyList<Patrimony> Patrimonies { get; init; } = [];

        public bool HasStatements => Statements.Count > 0;

        public bool HasTransactions => Transactions.Count > 0;

        public bool HasPatrimonies => Patrimonies.Count > 0;
    }
}
