CodeLiturgy.Dashboard/BlueWest.Data/Finance/FinanceTransactionInsertDto.cs

38 lines
952 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using MapTo;
namespace BlueWest.Data
{
[MapFrom(typeof(FinanceTransaction))]
public partial class FinanceTransactionInsertDto
{
public string Currency { get; }
public double Amount { get; } // To Buy
public double Quantity { get; } // Bought
public double Fee { get; }
public TimeSpan UploadedDate { get; }
public TimeSpan TransactionDate { get; }
public FinanceTransactionInsertDto(
string currency,
double amount ,
double quantity,
double fee,
TimeSpan uploadedDate,
TimeSpan transactionDate)
{
Currency = currency;
Amount = amount;
Quantity = quantity;
Fee = fee;
UploadedDate = uploadedDate;
TransactionDate = transactionDate;
}
}
}