32 lines
852 B
C#
32 lines
852 B
C#
using Swarmops.Basic.Interfaces;
|
|
|
|
namespace Swarmops.Basic.Types
|
|
{
|
|
public class BasicCurrency : IHasIdentity
|
|
{
|
|
public BasicCurrency(int currencyId, string code, string name, string sign)
|
|
{
|
|
CurrencyId = currencyId;
|
|
Code = code;
|
|
Name = name;
|
|
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 CurrencyId; }
|
|
}
|
|
}
|
|
} |