Ejemplo n.º 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)));
        }
Ejemplo n.º 2
0
        public bool Equals(TopGameBaseVariant other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(GameBaseVariantId.Equals(other.GameBaseVariantId) &&
                   GameBaseVariantRank == other.GameBaseVariantRank &&
                   NumberOfMatchesCompleted == other.NumberOfMatchesCompleted &&
                   NumberOfMatchesWon == other.NumberOfMatchesWon);
        }
Ejemplo n.º 3
0
        public bool Equals(ScenarioStat other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(base.Equals(other) &&
                   Equals(FlexibleStats, other.FlexibleStats) &&
                   GameBaseVariantId.Equals(other.GameBaseVariantId) &&
                   MapId.Equals(other.MapId) &&
                   TotalPiesEarned == other.TotalPiesEarned);
        }
Ejemplo n.º 4
0
        public bool Equals(GameVariant other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

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

            return(ContentId.Equals(other.ContentId) &&
                   string.Equals(Description, other.Description) &&
                   GameBaseVariantId.Equals(other.GameBaseVariantId) &&
                   string.Equals(IconUrl, other.IconUrl) &&
                   Id.Equals(other.Id) &&
                   string.Equals(Name, other.Name));
        }
Ejemplo n.º 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));
        }