public bool Equals(UserWeatherPB other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (UserId != other.UserId) { return(false); } if (Player != other.Player) { return(false); } if (WeatherId != other.WeatherId) { return(false); } if (!BlessNumMap.Equals(other.BlessNumMap)) { return(false); } if (ChallengeCount != other.ChallengeCount) { return(false); } return(true); }
public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } if (Player != 0) { hash ^= Player.GetHashCode(); } if (WeatherId != 0) { hash ^= WeatherId.GetHashCode(); } hash ^= BlessNumMap.GetHashCode(); if (ChallengeCount != 0) { hash ^= ChallengeCount.GetHashCode(); } return(hash); }