public void MergeFrom(TradingPlayer other) { if (other == null) { return; } if (other.PlayerId.Length != 0) { PlayerId = other.PlayerId; } if (other.publicProfile_ != null) { if (publicProfile_ == null) { publicProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile(); } PublicProfile.MergeFrom(other.PublicProfile); } excludedPokemon_.Add(other.excludedPokemon_); if (other.tradingPokemon_ != null) { if (tradingPokemon_ == null) { tradingPokemon_ = new global::POGOProtos.Data.Trading.TradingPokemon(); } TradingPokemon.MergeFrom(other.TradingPokemon); } if (other.bonus_ != null) { if (bonus_ == null) { bonus_ = new global::POGOProtos.Inventory.Loot(); } Bonus.MergeFrom(other.Bonus); } if (other.price_ != null) { if (price_ == null) { price_ = new global::POGOProtos.Inventory.Loot(); } Price.MergeFrom(other.Price); } if (other.CanAffordTrading != false) { CanAffordTrading = other.CanAffordTrading; } if (other.HasConfirmed != false) { HasConfirmed = other.HasConfirmed; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (PlayerId.Length != 0) { hash ^= PlayerId.GetHashCode(); } if (publicProfile_ != null) { hash ^= PublicProfile.GetHashCode(); } hash ^= excludedPokemon_.GetHashCode(); if (tradingPokemon_ != null) { hash ^= TradingPokemon.GetHashCode(); } if (bonus_ != null) { hash ^= Bonus.GetHashCode(); } if (price_ != null) { hash ^= Price.GetHashCode(); } if (CanAffordTrading != false) { hash ^= CanAffordTrading.GetHashCode(); } if (HasConfirmed != false) { hash ^= HasConfirmed.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }