Ejemplo n.º 1
0
        public override void Dehydrate(IDataDehydrator dehydrator)
        {
            base.Dehydrate(dehydrator);

            dehydrator.Write(this.localTime);
            dehydrator.Write(this.supportedChains.Value);
        }
Ejemplo n.º 2
0
        public override void Dehydrate(IDataDehydrator dehydrator)
        {
            base.Dehydrate(dehydrator);

            dehydrator.Write(this.supportedChains.Value);
            dehydrator.Write((byte)this.Status);
        }
Ejemplo n.º 3
0
        public override void Dehydrate(IDataDehydrator dehydrator)
        {
            base.Dehydrate(dehydrator);

            dehydrator.Write(this.FreezeId);
            this.Reason.Dehydrate(dehydrator);
            dehydrator.Write(this.Accounts);
        }
Ejemplo n.º 4
0
        protected override void DehydrateHeader(IDataDehydrator dehydrator)
        {
            base.DehydrateHeader(dehydrator);

            dehydrator.Write(this.AcceptSAFUTermsOfService);
            this.Total.Dehydrate(dehydrator);
            this.DailyProtection.Dehydrate(dehydrator);
            dehydrator.Write(this.Start);
        }
        public override void Dehydrate(IDataDehydrator dehydrator)
        {
            base.Dehydrate(dehydrator);

            this.Balance.Dehydrate(dehydrator);

            bool any = this.AccountFreezes.Any();

            dehydrator.Write(any);

            if (any)
            {
                dehydrator.Write((byte)this.AccountFreezes.Count);

                foreach (INeuraliumAccountFreeze entry in this.AccountFreezes)
                {
                    dehydrator.Write(entry.FreezeId);
                    Amount amount = new Amount(entry.Amount);
                    amount.Dehydrate(dehydrator);
                }
            }
        }
Ejemplo n.º 6
0
 public void Dehydrate(IDataDehydrator dehydrator)
 {
     this.TransactionId.Dehydrate(dehydrator);
     this.Amount.Dehydrate(dehydrator);
     dehydrator.Write(this.OutgoingSuspectTransactions);
 }