Adding currency exchange rate handling
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
<Compile Include="Types\BasicElection.cs" />
|
||||
<Compile Include="Types\BasicExceptionLog.cs" />
|
||||
<Compile Include="Types\BasicExternalActivity.cs" />
|
||||
<Compile Include="Types\Financial\BasicExchangeRateSnapshot.cs" />
|
||||
<Compile Include="Types\Financial\BasicFinancialTransactionTagSet.cs" />
|
||||
<Compile Include="Types\Financial\BasicFinancialTransactionTagSetType.cs" />
|
||||
<Compile Include="Types\Financial\BasicFinancialTransactionTagType.cs" />
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Swarmops.Basic.Interfaces;
|
||||
|
||||
namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
[Serializable]
|
||||
public class BasicExchangeRateSnapshot: IHasIdentity
|
||||
{
|
||||
[Obsolete("Do not call the default constructor directly. It is reserved for serialization.", true)]
|
||||
public BasicExchangeRateSnapshot()
|
||||
{
|
||||
// do not call
|
||||
}
|
||||
|
||||
public BasicExchangeRateSnapshot (int identity, DateTime dateTime)
|
||||
{
|
||||
this.ExchangeRateSnapshotId = identity;
|
||||
this.DateTime = dateTime;
|
||||
}
|
||||
|
||||
public BasicExchangeRateSnapshot (BasicExchangeRateSnapshot original) :
|
||||
this (original.Identity, original.DateTime)
|
||||
{
|
||||
// empty copy ctor
|
||||
}
|
||||
|
||||
public int ExchangeRateSnapshotId { get; private set; }
|
||||
public DateTime DateTime { get; private set; }
|
||||
public List<BasicExchangeRateSnapshotDatapoint> Datapoints { get; protected set; }
|
||||
|
||||
public int Identity { get { return ExchangeRateSnapshotId; }}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class BasicExchangeRateSnapshotDatapoint
|
||||
{
|
||||
public string CurrencyCodeA { get; set; }
|
||||
public string CurrencyCodeB { get; set; }
|
||||
public double APerB { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user