Files
using.cash/Basic/Types/BasicCurrency.cs
T

33 lines
881 B
C#

using Swarmops.Basic.Interfaces;
namespace Swarmops.Basic.Types
{
public class BasicCurrency: IHasIdentity
{
public BasicCurrency (int currencyId, string code, string name, string sign)
{
this.CurrencyId = currencyId;
this.Code = code;
this.Name = name;
this.Sign = sign;
}
public BasicCurrency (BasicCurrency original)
: this (original.CurrencyId, original.Code, original.Name, original.Sign)
{
// empty copy ctor
}
public int CurrencyId { get; private set; }
public string Code { get; private set; }
public string Name { get; private set; }
public string Sign { get; private set; }
public int Identity
{
get { return this.CurrencyId; }
}
}
}