Board2class

objectBoard2
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Services.Leaderboards.Board2

Constructors1

Showing 1 constructors

public Board2(string package, string name)PUBLICCONSTRUCTOR

ParameterTypeDescription
packagestring
namestring

Methods20

Showing 20 methods

public void CenterOnMe()PUBLIC

Center the results on you, show the surrounding results with you in the middle.

Returns:void

public void CenterOnSteamId(long steamid)PUBLIC

Center the results on this steamid, show the surrounding results with this in the middle.

ParameterTypeDescription
steamidlong
Returns:void

public void FilterByDay()PUBLIC

Returns:void

public void FilterByMonth()PUBLIC

Returns:void

public void FilterByNone()PUBLIC

Returns:void

public void FilterByWeek()PUBLIC

Returns:void

public void FilterByYear()PUBLIC

Returns:void

public void IncludeSteamIds(long[] steamids)PUBLIC

If they have any results, include these steamids in the results - regardless of their position.

ParameterTypeDescription
steamidslong[]
Returns:void

public System.Threading.Tasks.Task Refresh(System.Threading.CancellationToken cancellation = null)PUBLIC

ParameterTypeDescription
cancellation = nullCancellationToken
Returns:Task

public void SetAggregationAvg()PUBLIC

Returns:void

public void SetAggregationLast()PUBLIC

Returns:void

public void SetAggregationMax()PUBLIC

Returns:void

public void SetAggregationMin()PUBLIC

Returns:void

public void SetAggregationSum()PUBLIC

Returns:void

public void SetCountryAuto()PUBLIC

Returns:void

public void SetCountryCode(string countryCode)PUBLIC

ParameterTypeDescription
countryCodestring
Returns:void

public void SetDatePeriod(System.DateTime dateTime)PUBLIC

ParameterTypeDescription
dateTimeDateTime
Returns:void

public void SetFriendsOnly(bool friendsOnly)PUBLIC

ParameterTypeDescription
friendsOnlybool
Returns:void

public void SetSortAscending()PUBLIC

Returns:void

public void SetSortDescending()PUBLIC

Returns:void

Properties7

Showing 7 properties

public Sandbox.Services.Leaderboards.Board2.Entry[] Sandbox.Services.Leaderboards.Board2.Entries { get; set; }PUBLICGETSET

The group of entries for this board. This is usually the entries that surround the TargetSteamId.

Returns:Entry[]

public int Sandbox.Services.Leaderboards.Board2.MaxEntries { get; set; }PUBLICGETSET

The maximum entries to respond with.

Returns:int

public int Sandbox.Services.Leaderboards.Board2.Offset { get; set; }PUBLICGETSET

The offset to start at. If less than 0, we will start from the bottom.

Returns:int

public string Sandbox.Services.Leaderboards.Board2.Stat { get; set; }PUBLICGETSET

Returns:string

public long Sandbox.Services.Leaderboards.Board2.TargetSteamId { get; set; }PUBLICGETSET

The steamid to get information about. If unset then this defaults to the current player.

Returns:long

public string Sandbox.Services.Leaderboards.Board2.TimePeriodDescription { get; set; }PUBLICGETSET

If you are restructing by time period, this is the name of the period

Returns:string

public long Sandbox.Services.Leaderboards.Board2.TotalEntries { get; set; }PUBLICGETSET

The total number of chart entries for this board.

Returns:long

On this page

Constructorspublic Board2(System.String package, System.String name)Methodspublic System.Void CenterOnMe()public System.Void CenterOnSteamId(System.Int64 steamid)public System.Void FilterByDay()public System.Void FilterByMonth()public System.Void FilterByNone()public System.Void FilterByWeek()public System.Void FilterByYear()public System.Void IncludeSteamIds(System.Int64[] steamids)public System.Threading.Tasks.Task Refresh(System.Threading.CancellationToken cancellation = null)public System.Void SetAggregationAvg()public System.Void SetAggregationLast()public System.Void SetAggregationMax()public System.Void SetAggregationMin()public System.Void SetAggregationSum()public System.Void SetCountryAuto()public System.Void SetCountryCode(System.String countryCode)public System.Void SetDatePeriod(System.DateTime dateTime)public System.Void SetFriendsOnly(System.Boolean friendsOnly)public System.Void SetSortAscending()public System.Void SetSortDescending()Propertiespublic Sandbox.Services.Leaderboards.Board2.Entry[] Sandbox.Services.Leaderboards.Board2.Entries { get; set; }public System.Int32 Sandbox.Services.Leaderboards.Board2.MaxEntries { get; set; }public System.Int32 Sandbox.Services.Leaderboards.Board2.Offset { get; set; }public System.String Sandbox.Services.Leaderboards.Board2.Stat { get; set; }public System.Int64 Sandbox.Services.Leaderboards.Board2.TargetSteamId { get; set; }public System.String Sandbox.Services.Leaderboards.Board2.TimePeriodDescription { get; set; }public System.Int64 Sandbox.Services.Leaderboards.Board2.TotalEntries { get; set; }Metadata