mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 14:13:46 +00:00
Added status to SharedDeposit model
This commit is contained in:
parent
9d43d358cf
commit
3559e38146
21
CryptoExchange.Net/SharedApis/Enums/SharedTransferStatus.cs
Normal file
21
CryptoExchange.Net/SharedApis/Enums/SharedTransferStatus.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace CryptoExchange.Net.SharedApis
|
||||
{
|
||||
/// <summary>
|
||||
/// Transfer status
|
||||
/// </summary>
|
||||
public enum SharedTransferStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// In progress
|
||||
/// </summary>
|
||||
InProgress,
|
||||
/// <summary>
|
||||
/// Failed
|
||||
/// </summary>
|
||||
Failed,
|
||||
/// <summary>
|
||||
/// Completed
|
||||
/// </summary>
|
||||
Completed
|
||||
}
|
||||
}
|
||||
@ -44,15 +44,21 @@ namespace CryptoExchange.Net.SharedApis
|
||||
/// </summary>
|
||||
public bool Completed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Status of the deposit
|
||||
/// </summary>
|
||||
public SharedTransferStatus Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ctor
|
||||
/// </summary>
|
||||
public SharedDeposit(string asset, decimal quantity, bool completed, DateTime timestamp)
|
||||
public SharedDeposit(string asset, decimal quantity, bool completed, DateTime timestamp, SharedTransferStatus status)
|
||||
{
|
||||
Asset = asset;
|
||||
Quantity = quantity;
|
||||
Timestamp = timestamp;
|
||||
Completed = completed;
|
||||
Status = status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user