Ejemplo n.º 1
0
        public QBitNinja.Client.Models.BalanceSummary Result()
        {
            //UnityEngine.Debug.Log(UnityEngine.JsonUtility.ToJson(this,true));

            var result = new QBitNinja.Client.Models.BalanceSummary();

            result.UnConfirmed   = BalanceSummaryDetails.Create(unConfirmed);
            result.Confirmed     = BalanceSummaryDetails.Create(confirmed);
            result.Spendable     = BalanceSummaryDetails.Create(spendable);
            result.Immature      = BalanceSummaryDetails.Create(immature);
            result.OlderImmature = olderImmature;

            if (cacheHit != null && cacheHit.Length > 0)
            {
                result.CacheHit = (QBitNinja.Client.Models.CacheHit)Enum.Parse(typeof(QBitNinja.Client.Models.CacheHit), cacheHit, true);
            }

            return(result);
        }
Ejemplo n.º 2
0
 void GetBalanceSummaryResponse(QBitNinja.Client.Models.BalanceSummary result, NBitcoin.Network network)
 {
     UnityEngine.Debug.Log(result.Spendable.Amount);
 }