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

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

                case 10: {
                    if (payment_ == null)
                    {
                        payment_ = new global::Bitcoin.PaymentProtocol.Payment();
                    }
                    input.ReadMessage(payment_);
                    break;
                }

                case 18: {
                    Memo = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(PaymentACK other)
 {
     if (other == null)
     {
         return;
     }
     if (other.payment_ != null)
     {
         if (payment_ == null)
         {
             payment_ = new global::Bitcoin.PaymentProtocol.Payment();
         }
         Payment.MergeFrom(other.Payment);
     }
     if (other.Memo.Length != 0)
     {
         Memo = other.Memo;
     }
 }