public override int GetHashCode() { int hash = 1; if (FortressTemplateGmtId.Length != 0) { hash ^= FortressTemplateGmtId.GetHashCode(); } if (OwningTeamId.Length != 0) { hash ^= OwningTeamId.GetHashCode(); } if (ElectoralVotes != 0L) { hash ^= ElectoralVotes.GetHashCode(); } if (SeasonId.Length != 0) { hash ^= SeasonId.GetHashCode(); } if (RegionId.Length != 0) { hash ^= RegionId.GetHashCode(); } if (WcActiveUntilMs != 0L) { hash ^= WcActiveUntilMs.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
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 override int GetHashCode() { int hash = 1; if (SeasonId.Length != 0) { hash ^= SeasonId.GetHashCode(); } if (RegionId.Length != 0) { hash ^= RegionId.GetHashCode(); } if (scores_ != null) { hash ^= Scores.GetHashCode(); } if (RegionName.Length != 0) { hash ^= RegionName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
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))); }
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); }
public override int GetHashCode() { unchecked { return(((RankedPlaylistStats?.GetHashCode() ?? 0) * 397) ^ SeasonId.GetHashCode()); } }
public override int GetHashCode() { unchecked { int hash = 23; hash = hash * 37 + TeamId.GetHashCode(); hash = hash * 37 + (Name != null ? Name.GetHashCode() : 0); hash = hash * 37 + (LeagueId != null ? LeagueId.GetHashCode() : 0); hash = hash * 37 + SeasonId.GetHashCode(); hash = hash * 37 + (Score != null ? Score.GetHashCode() : 0); return(hash); } }
// Generated by R# public override int GetHashCode() { var hashCode = 785467465; hashCode = hashCode * -1521134295 + FleetId.GetHashCode(); hashCode = hashCode * -1521134295 + SeriesId.GetHashCode(); hashCode = hashCode * -1521134295 + SeasonId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(RaceNumber); hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(Place); return(hashCode); }
internal CreateCareerCommand(string name, CompetitionId competitionId, SeasonId seasonId, Manager manager, ClubId clubId, Date date) { Ensure.IsNotNullOrEmpty(name); Ensure.IsNotNull(competitionId); Ensure.IsNotNull(seasonId); Ensure.IsNotNull(manager); Ensure.IsNotNull(clubId); this.Name = name; this.CompetitionId = competitionId; this.SeasonId = seasonId; this.Manager = manager; this.ClubId = clubId; this.Date = date; }
public override int GetHashCode() { unchecked { int hash = 23; hash = hash * 37 + PlayDay.GetHashCode(); hash = hash * 37 + GameId.GetHashCode(); hash = hash * 37 + SeasonId.GetHashCode(); hash = hash * 37 + Date.GetHashCode(); hash = hash * 37 + (HomeTeam != null ? HomeTeam.GetHashCode() : 0); hash = hash * 37 + (AwayTeam != null ? AwayTeam.GetHashCode() : 0); hash = hash * 37 + (Arena != null ? Arena.GetHashCode() : 0); return(hash); } }
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)); }
public override int GetHashCode() { unchecked { var hashCode = GameBaseVariantId.GetHashCode(); hashCode = (hashCode * 397) ^ GameVariantId.GetHashCode(); hashCode = (hashCode * 397) ^ IsMatchOver.GetHashCode(); hashCode = (hashCode * 397) ^ IsTeamGame.GetHashCode(); hashCode = (hashCode * 397) ^ MapId.GetHashCode(); hashCode = (hashCode * 397) ^ MapVariantId.GetHashCode(); hashCode = (hashCode * 397) ^ PlaylistId.GetHashCode(); hashCode = (hashCode * 397) ^ SeasonId.GetHashCode(); hashCode = (hashCode * 397) ^ TotalDuration.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (int)GameMode; hashCode = (hashCode * 397) ^ IsMatchComplete.GetHashCode(); hashCode = (hashCode * 397) ^ (MapId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MatchDuration.GetHashCode(); hashCode = (hashCode * 397) ^ MatchEndReason.GetHashCode(); hashCode = (hashCode * 397) ^ MatchId.GetHashCode(); hashCode = (hashCode * 397) ^ (MatchStartDate != null ? MatchStartDate.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)MatchType; hashCode = (hashCode * 397) ^ (Players?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ PlaylistId.GetHashCode(); hashCode = (hashCode * 397) ^ SeasonId.GetHashCode(); hashCode = (hashCode * 397) ^ (Teams?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ VictoryCondition.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = GameBaseVariantId.GetHashCode(); hashCode = (hashCode * 397) ^ (GameVariant?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ HopperId.GetHashCode(); hashCode = (hashCode * 397) ^ (Id?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsTeamGame.GetHashCode(); hashCode = (hashCode * 397) ^ (Links?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MapId.GetHashCode(); hashCode = (hashCode * 397) ^ (MapVariant?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MatchCompletedDate?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MatchDuration.GetHashCode(); hashCode = (hashCode * 397) ^ (Players?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ SeasonId.GetHashCode(); hashCode = (hashCode * 397) ^ MatchCompletedDateFidelity; hashCode = (hashCode * 397) ^ (Teams?.GetHashCode() ?? 0); return(hashCode); } }
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)); }
public override int GetHashCode() { unchecked { var hashCode = (ExperienceProgress != null ? ExperienceProgress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)GameMode; hashCode = (hashCode * 397) ^ LeaderId; hashCode = (hashCode * 397) ^ (MapId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MatchId.GetHashCode(); hashCode = (hashCode * 397) ^ (MatchStartDate != null ? MatchStartDate.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)MatchType; hashCode = (hashCode * 397) ^ PlayerCompletedMatch.GetHashCode(); hashCode = (hashCode * 397) ^ PlayerIndex; hashCode = (hashCode * 397) ^ PlayerMatchDuration.GetHashCode(); hashCode = (hashCode * 397) ^ (int)PlayerMatchOutcome; hashCode = (hashCode * 397) ^ PlaylistId.GetHashCode(); hashCode = (hashCode * 397) ^ (RatingProgress != null ? RatingProgress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SeasonId.GetHashCode(); hashCode = (hashCode * 397) ^ TeamId; hashCode = (hashCode * 397) ^ TeamPlayerIndex; hashCode = (hashCode * 397) ^ (Teams?.GetHashCode() ?? 0); return(hashCode); } }
public CreateCareerCommandBuilder WithSeasonId(SeasonId seasonId) { this.seasonId = seasonId; return(this); }