Added Bitcoin Cash db fields
This commit is contained in:
@@ -3,35 +3,40 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Common.Interfaces;
|
||||
|
||||
namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicHotBitcoinAddress: IHasIdentity
|
||||
{
|
||||
public BasicHotBitcoinAddress (int hotBitcoinAddressId, int organizationId, string derivationPath,
|
||||
string address, Int64 balanceSatoshis, Int64 throughputSatoshis)
|
||||
public BasicHotBitcoinAddress (int hotBitcoinAddressId, int organizationId, BitcoinChain chain, string derivationPath,
|
||||
string address, string addressFallback, Int64 balanceSatoshis, Int64 throughputSatoshis)
|
||||
{
|
||||
this.HotBitcoinAddressId = hotBitcoinAddressId;
|
||||
this.OrganizationId = organizationId;
|
||||
this.Chain = chain;
|
||||
this.DerivationPath = derivationPath;
|
||||
this.Address = address;
|
||||
this.AddressFallback = addressFallback;
|
||||
this.BalanceSatoshis = balanceSatoshis;
|
||||
this.ThroughputSatoshis = throughputSatoshis;
|
||||
}
|
||||
|
||||
public BasicHotBitcoinAddress (BasicHotBitcoinAddress original)
|
||||
: this (
|
||||
original.HotBitcoinAddressId, original.OrganizationId, original.DerivationPath, original.Address, original.BalanceSatoshis,
|
||||
original.ThroughputSatoshis)
|
||||
original.HotBitcoinAddressId, original.OrganizationId, original.Chain, original.DerivationPath,
|
||||
original.Address, original.AddressFallback, original.BalanceSatoshis, original.ThroughputSatoshis)
|
||||
{
|
||||
// copy ctor
|
||||
}
|
||||
|
||||
public int HotBitcoinAddressId { get; private set; }
|
||||
public int OrganizationId { get; private set; }
|
||||
public BitcoinChain Chain { get; private set; }
|
||||
public string DerivationPath { get; private set; }
|
||||
public string Address { get; private set; }
|
||||
public string AddressFallback { get; private set; }
|
||||
public Int64 BalanceSatoshis { get; protected set; }
|
||||
public Int64 ThroughputSatoshis { get; protected set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user