mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
37 lines
1.5 KiB
C#
37 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BTCPayServer.Data;
|
|
using BTCPayServer.Services.Invoices;
|
|
using BTCPayServer.Services.Wallets;
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
{
|
|
public class ListTransactionsViewModel : BasePagingViewModel
|
|
{
|
|
public class TransactionViewModel
|
|
{
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
public bool IsConfirmed { get; set; }
|
|
public bool CanBumpFee { get; set; }
|
|
public string Comment { get; set; }
|
|
public string Id { get; set; }
|
|
public string Link { get; set; }
|
|
public bool Positive { get; set; }
|
|
public string Balance { get; set; }
|
|
public HashSet<TransactionTagModel> Tags { get; set; } = new();
|
|
public string Rate { get; set; }
|
|
public List<string> Rates { get; set; } = new();
|
|
public RateBook WalletRateBook { get; set; }
|
|
public RateBook InvoiceRateBook { get; set; }
|
|
public string InvoiceId { get; set; }
|
|
public TransactionHistoryLine HistoryLine { get; set; }
|
|
}
|
|
public HashSet<(string Text, string Color, string TextColor)> Labels { get; set; } = new();
|
|
public List<TransactionViewModel> Transactions { get; set; } = new();
|
|
public override int CurrentPageCount => Transactions.Count;
|
|
public string CryptoCode { get; set; }
|
|
public PendingTransaction[] PendingTransactions { get; set; }
|
|
public List<string> Rates { get; set; }
|
|
}
|
|
}
|