示例#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));
        }