public void MergeFrom(GetGymBadgeDetailsResponse other) { if (other == null) { return; } if (other.gymBadge_ != null) { if (gymBadge_ == null) { gymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge(); } GymBadge.MergeFrom(other.GymBadge); } if (other.gymDefender_ != null) { if (gymDefender_ == null) { gymDefender_ = new global::POGOProtos.Data.Gym.GymDefender(); } GymDefender.MergeFrom(other.GymDefender); } if (other.Success != false) { Success = other.Success; } }
public override int GetHashCode() { int hash = 1; if (gymBadge_ != null) { hash ^= GymBadge.GetHashCode(); } if (gymDefender_ != null) { hash ^= GymDefender.GetHashCode(); } if (Success != false) { hash ^= Success.GetHashCode(); } return(hash); }