Added Bitcoin Cash db fields

This commit is contained in:
Rick Falkvinge
2017-11-15 12:36:28 +01:00
parent d602fb5ed6
commit 7c2cb4fc7c
13 changed files with 142 additions and 27 deletions
@@ -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; }