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

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (trade_ == null)
                    {
                        Trade = new global::Trading.TradeStore();
                    }
                    input.ReadMessage(Trade);
                    break;
                }

                case 18: {
                    pendingNotification_.AddEntriesFrom(input, _repeated_pendingNotification_codec);
                    break;
                }

                case 24: {
                    Cancelled = input.ReadBool();
                    break;
                }
                }
            }
        }
예제 #2
0
 public void MergeFrom(CompletedTradeStore other)
 {
     if (other == null)
     {
         return;
     }
     if (other.trade_ != null)
     {
         if (trade_ == null)
         {
             trade_ = new global::Trading.TradeStore();
         }
         Trade.MergeFrom(other.Trade);
     }
     pendingNotification_.Add(other.pendingNotification_);
     if (other.Cancelled != false)
     {
         Cancelled = other.Cancelled;
     }
 }
예제 #3
0
 public void MergeFrom(CompletedTradeStore other)
 {
     if (other == null)
     {
         return;
     }
     if (other.trade_ != null)
     {
         if (trade_ == null)
         {
             Trade = new global::Trading.TradeStore();
         }
         Trade.MergeFrom(other.Trade);
     }
     pendingNotification_.Add(other.pendingNotification_);
     if (other.Cancelled != false)
     {
         Cancelled = other.Cancelled;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }