Пример #1
0
 public void MergeFrom(InventoryItem other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ModifiedTimestampMs != 0L)
     {
         ModifiedTimestampMs = other.ModifiedTimestampMs;
     }
     if (other.deletedItem_ != null)
     {
         if (deletedItem_ == null)
         {
             deletedItem_ = new global::POGOProtos.Inventory.InventoryItem.Types.DeletedItem();
         }
         DeletedItem.MergeFrom(other.DeletedItem);
     }
     if (other.inventoryItemData_ != null)
     {
         if (inventoryItemData_ == null)
         {
             inventoryItemData_ = new global::POGOProtos.Inventory.InventoryItemData();
         }
         InventoryItemData.MergeFrom(other.InventoryItemData);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
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 8: {
                    ModifiedTimestampMs = input.ReadInt64();
                    break;
                }

                case 18: {
                    if (deletedItem_ == null)
                    {
                        deletedItem_ = new global::POGOProtos.Inventory.InventoryItem.Types.DeletedItem();
                    }
                    input.ReadMessage(deletedItem_);
                    break;
                }

                case 26: {
                    if (inventoryItemData_ == null)
                    {
                        inventoryItemData_ = new global::POGOProtos.Inventory.InventoryItemData();
                    }
                    input.ReadMessage(inventoryItemData_);
                    break;
                }
                }
            }
        }