public void MergeFrom(EvolvePokemonResponse other) { if (other == null) { return; } if (other.Result != 0) { Result = other.Result; } if (other.evolvedPokemonData_ != null) { if (evolvedPokemonData_ == null) { evolvedPokemonData_ = new global::POGOProtos.Data.PokemonData(); } EvolvedPokemonData.MergeFrom(other.EvolvedPokemonData); } if (other.ExperienceAwarded != 0) { ExperienceAwarded = other.ExperienceAwarded; } if (other.CandyAwarded != 0) { CandyAwarded = other.CandyAwarded; } }
public override int GetHashCode() { int hash = 1; if (Result != 0) { hash ^= Result.GetHashCode(); } if (evolvedPokemonData_ != null) { hash ^= EvolvedPokemonData.GetHashCode(); } if (ExperienceAwarded != 0) { hash ^= ExperienceAwarded.GetHashCode(); } if (CandyAwarded != 0) { hash ^= CandyAwarded.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }