public override int GetHashCode() { int hash = 1; if (Result != 0) { hash ^= Result.GetHashCode(); } if (FriendCodename.Length != 0) { hash ^= FriendCodename.GetHashCode(); } if (tradeOutPokemon_ != null) { hash ^= TradeOutPokemon.GetHashCode(); } if (tradeInPokemon_ != null) { hash ^= TradeInPokemon.GetHashCode(); } if (rewards_ != null) { hash ^= Rewards.GetHashCode(); } if (price_ != null) { hash ^= Price.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(TradingLogEntry other) { if (other == null) { return; } if (other.Result != 0) { Result = other.Result; } if (other.FriendCodename.Length != 0) { FriendCodename = other.FriendCodename; } if (other.tradeOutPokemon_ != null) { if (tradeOutPokemon_ == null) { tradeOutPokemon_ = new global::POGOProtos.Data.PokemonData(); } TradeOutPokemon.MergeFrom(other.TradeOutPokemon); } if (other.tradeInPokemon_ != null) { if (tradeInPokemon_ == null) { tradeInPokemon_ = new global::POGOProtos.Data.PokemonData(); } TradeInPokemon.MergeFrom(other.TradeInPokemon); } if (other.rewards_ != null) { if (rewards_ == null) { rewards_ = new global::POGOProtos.Inventory.Loot(); } Rewards.MergeFrom(other.Rewards); } if (other.price_ != null) { if (price_ == null) { price_ = new global::POGOProtos.Inventory.Loot(); } Price.MergeFrom(other.Price); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }