Struct LeaderboardQuery
Which board to read: the source column, which template or season it is filtered to, and who is eligible to appear on it.
public readonly struct LeaderboardQuery : IEquatable<LeaderboardQuery>
- Implements
- Inherited Members
Remarks
A value type with value equality so a caller can key a cache on it directly: two queries that would produce the same SQL and the same parameters are equal.
Constructors
LeaderboardQuery(LeaderboardSourceKind, int, int, bool)
public LeaderboardQuery(LeaderboardSourceKind source, int templateID, int minimumGames, bool rankStaff)
Parameters
sourceLeaderboardSourceKindtemplateIDintminimumGamesintrankStaffbool
Fields
MinimumGames
Arena only: games a character must have finished this season to be ranked. Values below 1 are read as 1, so a row that was inserted and never scored cannot appear.
public readonly int MinimumGames
Field Value
RankStaff
When false, only characters on player accounts are ranked; game masters' and administrators' characters are left off. Banned accounts are never ranked.
public readonly bool RankStaff
Field Value
Source
The stored number the board ranks by.
public readonly LeaderboardSourceKind Source
Field Value
TemplateID
The attribute or achievement template id for those sources; ignored for the arena, whose season is always the active one.
public readonly int TemplateID
Field Value
Methods
Equals(LeaderboardQuery)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(LeaderboardQuery other)
Parameters
otherLeaderboardQueryAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.