public override int GetHashCode() { int hash = 1; if (gymState_ != null) { hash ^= GymState.GetHashCode(); } hash ^= attackers_.GetHashCode(); hash ^= playerXpAwarded_.GetHashCode(); if (NextDefenderPokemonId != 0L) { hash ^= NextDefenderPokemonId.GetHashCode(); } if (GymPointsDelta != 0) { hash ^= GymPointsDelta.GetHashCode(); } if (gymStatus_ != null) { hash ^= GymStatus.GetHashCode(); } hash ^= participation_.GetHashCode(); hash ^= raidItemRewards_.GetHashCode(); hash ^= postRaidEncounter_.GetHashCode(); hash ^= gymBadge_.GetHashCode(); hash ^= defaultRaidItemRewards_.GetHashCode(); return(hash); }
public void MergeFrom(BattleResults other) { if (other == null) { return; } if (other.gymState_ != null) { if (gymState_ == null) { gymState_ = new global::POGOProtos.Data.Gym.GymState(); } GymState.MergeFrom(other.GymState); } attackers_.Add(other.attackers_); playerXpAwarded_.Add(other.playerXpAwarded_); if (other.NextDefenderPokemonId != 0L) { NextDefenderPokemonId = other.NextDefenderPokemonId; } if (other.GymPointsDelta != 0) { GymPointsDelta = other.GymPointsDelta; } if (other.gymStatus_ != null) { if (gymStatus_ == null) { gymStatus_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders(); } GymStatus.MergeFrom(other.GymStatus); } participation_.Add(other.participation_); raidItemRewards_.Add(other.raidItemRewards_); postRaidEncounter_.Add(other.postRaidEncounter_); gymBadge_.Add(other.gymBadge_); defaultRaidItemRewards_.Add(other.defaultRaidItemRewards_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }