Exemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Symbol = input.ReadString();
                    break;
                }

                case 18: {
                    City = input.ReadString();
                    break;
                }

                case 24: {
                    status_ = (global::OrderManagement.EventStore.Messages.MarketStatus)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemplo n.º 2
0
 public void MergeFrom(Market other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Symbol.Length != 0)
     {
         Symbol = other.Symbol;
     }
     if (other.City.Length != 0)
     {
         City = other.City;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
 }