public PoolInfo(TestApi.Pool pool) { Time = ConvUtils.UnixTimeStampToDateTime(pool.Time); Hash = ConvUtils.ConvertHash(pool.Hash); TxCount = pool.TransactionsCount; Number = pool.PoolNumber; }
public TokenTransfer(Release.TokenTransfer t) { Initiator = Base58Encoding.Encode(t.Initiator); Amount = t.Amount; Time = ConvUtils.UnixTimeStampToDateTime(t.Time); Transaction = ConvUtils.GetTxId(t.Transaction); }
public AccountData(Release.WalletInfo info) { Address = Base58Encoding.Encode(info.Address); Balance = ConvUtils.FormatAmount(info.Balance); TxCount = (int)info.TransactionsNumber; FirstTxDateTime = ConvUtils.UnixTimeStampToDateTime(info.FirstTransactionTime); }
public TokenTransaction(Release.TokenTransaction t, int index) { Index = index; Id = ConvUtils.GetTxId(t.Transaction); Time = ConvUtils.UnixTimeStampToDateTime(t.Time); Initiator = Base58Encoding.Encode(t.Initiator); Method = t.Method; Params = string.Join(", ", t.Params); }
public BlockInfo(Release.Pool pool) { Time = ConvUtils.UnixTimeStampToDateTime(pool.Time); Hash = ConvUtils.ConvertHash(pool.Hash); TxCount = pool.TransactionsCount; Number = pool.PoolNumber; Fee = ConvUtils.FormatAmount(pool.TotalFee); Writer = Base58Encoding.Encode(pool.Writer); }
public PoolInfo(NodeApi.Pool pool) { Age = ConvUtils.GetAge(pool.Time); Time = ConvUtils.UnixTimeStampToDateTime(pool.Time); Hash = ConvUtils.ConvertHashAscii(pool.Hash); TxCount = pool.TransactionsCount; Status = true; Number = pool.PoolNumber; }