Example #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: {
                    TicketId = input.ReadString();
                    break;
                }

                case 16: {
                    item_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum();
                    break;
                }

                case 34: {
                    if (exclusiveInfo_ == null)
                    {
                        exclusiveInfo_ = new global::POGOProtos.Inventory.ExclusiveTicketInfo();
                    }
                    input.ReadMessage(exclusiveInfo_);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(RaidTicket other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TicketId.Length != 0)
     {
         TicketId = other.TicketId;
     }
     if (other.Item != 0)
     {
         Item = other.Item;
     }
     if (other.exclusiveInfo_ != null)
     {
         if (exclusiveInfo_ == null)
         {
             exclusiveInfo_ = new global::POGOProtos.Inventory.ExclusiveTicketInfo();
         }
         ExclusiveInfo.MergeFrom(other.ExclusiveInfo);
     }
 }