-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCurrencyConversion.cs
More file actions
33 lines (31 loc) · 994 Bytes
/
CurrencyConversion.cs
File metadata and controls
33 lines (31 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace BytecodeApi.Data;
/// <summary>
/// Specifies a currency conversion rate.
/// </summary>
public sealed class CurrencyConversion
{
/// <summary>
/// Specifies the currency to convert from.
/// </summary>
public Currency From { get; set; }
/// <summary>
/// Specifies the currency to convert to.
/// </summary>
public Currency To { get; set; }
/// <summary>
/// Specifies the exchange rate to convert between currencies.
/// </summary>
public double ExchangeRate { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="CurrencyConversion" /> class.
/// </summary>
/// <param name="from">The currency to convert from.</param>
/// <param name="to">The currency to convert to.</param>
/// <param name="exchangeRate">The exchange rate to convert between currencies.</param>
public CurrencyConversion(Currency from, Currency to, double exchangeRate)
{
From = from;
To = to;
ExchangeRate = exchangeRate;
}
}