39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using MapTo;
|
|||
|
|
|||
|
namespace BlueWest.Data
|
|||
|
{
|
|||
|
[MapFrom(typeof(FinanceTransaction))]
|
|||
|
|
|||
|
public partial struct FinanceTransactionInsertDto
|
|||
|
{
|
|||
|
public int UserId { get; }
|
|||
|
public FinanceTransactionType FinanceTransactionType { get; }
|
|||
|
public FinanceSymbol FinanceSymbol { get; }
|
|||
|
public double Amount { get; } // To Buy
|
|||
|
public double Quantity { get; } // Bought
|
|||
|
public double Fee { get; }
|
|||
|
public DateTime DateTime { get; }
|
|||
|
|
|||
|
public FinanceTransactionInsertDto(
|
|||
|
int userId,
|
|||
|
FinanceTransactionType financeTransactionType,
|
|||
|
FinanceSymbol financeSymbol,
|
|||
|
double amount ,
|
|||
|
double quantity,
|
|||
|
double fee,
|
|||
|
DateTime dateTime)
|
|||
|
{
|
|||
|
UserId = userId;
|
|||
|
FinanceTransactionType = financeTransactionType;
|
|||
|
FinanceSymbol = financeSymbol;
|
|||
|
Amount = amount;
|
|||
|
Quantity = quantity;
|
|||
|
Fee = fee;
|
|||
|
DateTime = dateTime;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|