CryptoCalc/Transaction.cs

45 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CryptoCalc
{
public class Transaction
{
public Transaction(){}
public Transaction(string _currency, float _amount, string _type)
{
Date_Year = DateTime.Now.Year;
Date_Month = DateTime.Now.Month;
Date_Day = DateTime.Now.Day;
Time_Hour = DateTime.Now.Hour;
Time_Minute = DateTime.Now.Minute;
Time_Second = DateTime.Now.Second;
DateTimeString = DateTime.Now.ToString();
CryptoCurrency = _currency;
Amount = _amount;
TransactionType = _type;
Service = "";
Comment = "";
}
public int Index { get; set; }
public int Date_Year { get; set; }
public int Date_Month { get; set; }
public int Date_Day { get; set; }
public int Time_Hour { get; set; }
public int Time_Minute { get; set; }
public int Time_Second { get; set; }
public string DateTimeString { get; set; }
public string CryptoCurrency { get; set; }
public float Amount { get; set; }
public string TransactionType { get; set; }
public string Service { get; set; }
public string Comment { get; set; }
public string FullInfo => $"{ Index.ToString() } { DateTimeString } { CryptoCurrency } { Amount } { TransactionType }";
}
}