示例#1
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(BoostInfo, other.BoostInfo) &&
                   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));
        }
示例#2
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) &&
                   Equals(BoostInfo, other.BoostInfo) &&
                   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)) &&
                   Equals(PveTotalRoundAssistBonuses, other.PveTotalRoundAssistBonuses) &&
                   Equals(PveTotalRoundKillBonuses, other.PveTotalRoundKillBonuses) &&
                   Equals(PveTotalRoundSpeedBonuses, other.PveTotalRoundSpeedBonuses) &&
                   Equals(PveTotalRoundSurvivalBonuses, other.PveTotalRoundSurvivalBonuses) &&
                   RewardSets.OrderBy(rs => rs.Id).SequenceEqual(other.RewardSets.OrderBy(rs => rs.Id)) &&
                   TotalPiesEarned == other.TotalPiesEarned &&
                   WarzoneLevel == other.WarzoneLevel &&
                   Equals(XpInfo, other.XpInfo));
        }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (KilledByOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledOpponentDetails?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#4
0
        public bool Equals(CustomMatchPlayerStat other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(base.Equals(other) &&
                   KilledByOpponentDetails.OrderBy(od => od.GamerTag).SequenceEqual(other.KilledByOpponentDetails.OrderBy(od => od.GamerTag)) &&
                   KilledOpponentDetails.OrderBy(od => od.GamerTag).SequenceEqual(other.KilledOpponentDetails.OrderBy(od => od.GamerTag)));
        }
示例#5
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreditsEarned?.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) ^ (RewardSets?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ TotalPiesEarned;
         hashCode = (hashCode * 397) ^ WarzoneLevel;
         hashCode = (hashCode * 397) ^ (XpInfo?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#6
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);
     }
 }