예제 #1
0
        public bool Equals(Result other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(GameBaseVariantId.Equals(other.GameBaseVariantId) &&
                   Equals(GameVariant, other.GameVariant) &&
                   HopperId.Equals(other.HopperId) &&
                   Equals(Id, other.Id) &&
                   IsTeamGame == other.IsTeamGame &&
                   Links.OrderBy(l => l.Key).SequenceEqual(other.Links.OrderBy(l => l.Key)) &&
                   MapId.Equals(other.MapId) &&
                   Equals(MapVariant, other.MapVariant) &&
                   Equals(MatchCompletedDate, other.MatchCompletedDate) &&
                   MatchDuration.Equals(other.MatchDuration) &&
                   Players.OrderBy(p => p.Identity.Gamertag).SequenceEqual(other.Players.OrderBy(p => p.Identity.Gamertag)) &&
                   SeasonId.Equals(other.SeasonId) &&
                   MatchCompletedDateFidelity == other.MatchCompletedDateFidelity &&
                   Teams.OrderBy(t => t.Id).SequenceEqual(other.Teams.OrderBy(t => t.Id)));
        }
예제 #2
0
        public bool Equals(Match other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(GameMode == other.GameMode &&
                   IsMatchComplete == other.IsMatchComplete &&
                   string.Equals(MapId, other.MapId) &&
                   MatchDuration.Equals(other.MatchDuration) &&
                   MatchEndReason == other.MatchEndReason &&
                   MatchId.Equals(other.MatchId) &&
                   Equals(MatchStartDate, other.MatchStartDate) &&
                   MatchType == other.MatchType &&
                   Players.OrderBy(p => p.Key).SequenceEqual(other.Players.OrderBy(p => p.Key)) &&
                   PlaylistId.Equals(other.PlaylistId) &&
                   SeasonId.Equals(other.SeasonId) &&
                   Teams.OrderBy(t => t.Key).SequenceEqual(other.Teams.OrderBy(t => t.Key)) &&
                   VictoryCondition == other.VictoryCondition);
        }
예제 #3
0
        public bool Equals(PlayerMatch other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(Equals(ExperienceProgress, other.ExperienceProgress) &&
                   GameMode == other.GameMode &&
                   LeaderId == other.LeaderId &&
                   string.Equals(MapId, other.MapId) &&
                   MatchId.Equals(other.MatchId) &&
                   Equals(MatchStartDate, other.MatchStartDate) &&
                   MatchType == other.MatchType &&
                   PlayerCompletedMatch == other.PlayerCompletedMatch &&
                   PlayerIndex == other.PlayerIndex &&
                   PlayerMatchDuration.Equals(other.PlayerMatchDuration) &&
                   PlayerMatchOutcome == other.PlayerMatchOutcome &&
                   PlaylistId.Equals(other.PlaylistId) &&
                   Equals(RatingProgress, other.RatingProgress) &&
                   SeasonId.Equals(other.SeasonId) &&
                   TeamId == other.TeamId &&
                   TeamPlayerIndex == other.TeamPlayerIndex &&
                   Teams.OrderBy(t => t.Key).SequenceEqual(other.Teams.OrderBy(t => t.Key)));
        }
예제 #4
0
        public bool Equals(SeasonSummary other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(RankedPlaylistStats.OrderBy(rps => rps.PlaylistId).SequenceEqual(other.RankedPlaylistStats.OrderBy(rps => rps.PlaylistId)) &&
                   SeasonId.Equals(other.SeasonId));
        }
예제 #5
0
        public bool Equals(BaseMatch other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(GameBaseVariantId.Equals(other.GameBaseVariantId) &&
                   GameVariantId.Equals(other.GameVariantId) &&
                   IsMatchOver == other.IsMatchOver &&
                   IsTeamGame == other.IsTeamGame &&
                   MapId.Equals(other.MapId) &&
                   MapVariantId.Equals(other.MapVariantId) &&
                   PlaylistId.Equals(other.PlaylistId) &&
                   SeasonId.Equals(other.SeasonId) &&
                   TotalDuration.Equals(other.TotalDuration));
        }