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))); }
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); }
public bool Equals(MapVariant other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ContentId.Equals(other.ContentId) && string.Equals(Description, other.Description) && Id.Equals(other.Id) && MapId.Equals(other.MapId) && string.Equals(MapImageUrl, other.MapImageUrl) && string.Equals(Name, other.Name)); }
private bool maybeUpdateMap(int newMapId) { if (MapId.Equals(newMapId)) { return(false); } string map; if (!_MapDict.TryGetValue(newMapId, out map)) { return(false); } MapId = newMapId; Map = map; updateMapBasedLinks(); return(true); }
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)); }