Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (wallet_ == null)
                    {
                        wallet_ = new global::VirtualWallet.Proto.Messages.Wallet();
                    }
                    input.ReadMessage(wallet_);
                    break;
                }

                case 16: {
                    Amount = input.ReadUInt64();
                    break;
                }

                case 24: {
                    type_ = (global::VirtualWallet.Proto.Messages.TransactionEntry.Types.EntryType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(TransactionEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.wallet_ != null)
     {
         if (wallet_ == null)
         {
             wallet_ = new global::VirtualWallet.Proto.Messages.Wallet();
         }
         Wallet.MergeFrom(other.Wallet);
     }
     if (other.Amount != 0UL)
     {
         Amount = other.Amount;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
 }