예제 #1
0
 public SingleAddressModel Transform()
 {
     return(new SingleAddressModel
     {
         Address = Address,
         Hash160 = Hash160,
         FinalBalance = DecimalConverter.ConvertToPrecision(FinalBalance, 100000000),
         TotalReceived = DecimalConverter.ConvertToPrecision(TotalReceived, 100000000),
         TotalSent = DecimalConverter.ConvertToPrecision(TotalSent, 100000000),
         NumberTransactions = NTx,
         NumberUnredeemed = NUnredeemed
     });
 }
예제 #2
0
        public MultiAddressEntryModel Transform()
        {
            var entry = new MultiAddressEntryModel
            {
                Address            = Address,
                Hash160            = Hash160,
                FinalBalance       = DecimalConverter.ConvertToPrecision(FinalBalance, 100000000),
                TotalReceived      = DecimalConverter.ConvertToPrecision(TotalReceived, 100000000),
                TotalSent          = DecimalConverter.ConvertToPrecision(TotalSent, 100000000),
                NumberTransactions = NTx,
                NumberUnredeemed   = NUnredeemed
            };

            return(entry);
        }