Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreditsEarned?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CurrentCsr?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledByOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ MeasurementMatchesLeft;
         hashCode = (hashCode * 397) ^ (MetaCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PreviousCsr?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProgressiveCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RewardSets?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (XpInfo?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreditsEarned?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (BoostInfo?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledByOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MetaCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProgressiveCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundAssistBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundKillBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundSpeedBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundSurvivalBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RewardSets?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ TotalPiesEarned;
         hashCode = (hashCode * 397) ^ WarzoneLevel;
         hashCode = (hashCode * 397) ^ (XpInfo?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 3
0
        public bool Equals(WarzonePlayerStat other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   Equals(CreditsEarned, other.CreditsEarned) &&
                   KilledByOpponentDetails.OrderBy(od => od.GamerTag).SequenceEqual(other.KilledByOpponentDetails.OrderBy(od => od.GamerTag)) &&
                   KilledOpponentDetails.OrderBy(od => od.GamerTag).SequenceEqual(other.KilledOpponentDetails.OrderBy(od => od.GamerTag)) &&
                   MetaCommendationDeltas.OrderBy(mcd => mcd.Id).SequenceEqual(other.MetaCommendationDeltas.OrderBy(mcd => mcd.Id)) &&
                   ProgressiveCommendationDeltas.OrderBy(pcd => pcd.Id).SequenceEqual(other.ProgressiveCommendationDeltas.OrderBy(pcd => pcd.Id)) &&
                   RewardSets.OrderBy(rs => rs.Id).SequenceEqual(other.RewardSets.OrderBy(rs => rs.Id)) &&
                   TotalPiesEarned == other.TotalPiesEarned &&
                   WarzoneLevel == other.WarzoneLevel &&
                   Equals(XpInfo, other.XpInfo));
        }
Exemplo n.º 4
0
        public bool Equals(ArenaMatchPlayerStat other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   Equals(CreditsEarned, other.CreditsEarned) &&
                   Equals(CurrentCsr, other.CurrentCsr) &&
                   KilledByOpponentDetails.OrderBy(kbod => kbod.GamerTag).SequenceEqual(other.KilledByOpponentDetails.OrderBy(kbod => kbod.GamerTag)) &&
                   KilledOpponentDetails.OrderBy(kod => kod.GamerTag).SequenceEqual(other.KilledOpponentDetails.OrderBy(kod => kod.GamerTag)) &&
                   MeasurementMatchesLeft == other.MeasurementMatchesLeft &&
                   MetaCommendationDeltas.OrderBy(mcd => mcd.Id).SequenceEqual(other.MetaCommendationDeltas.OrderBy(mcd => mcd.Id)) &&
                   Equals(PreviousCsr, other.PreviousCsr) &&
                   ProgressiveCommendationDeltas.OrderBy(pcd => pcd.Id).SequenceEqual(other.ProgressiveCommendationDeltas.OrderBy(pcd => pcd.Id)) &&
                   RewardSets.OrderBy(rs => rs.Id).SequenceEqual(other.RewardSets.OrderBy(rs => rs.Id)) &&
                   Equals(XpInfo, other.XpInfo));
        }