C# Класс BF2Statistics.Web.Bf2Stats.RankingsController

Наследование: Controller
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
ActionNames string[]
IndexCatagories List
IndexQueries string[]

Открытые методы

Метод Описание
FormatNumber ( object Num ) : string
GetPage ( int index ) : int

Returns the page number that the players stat would appear

HandleRequest ( MvcRoute Route ) : void
RankingsController ( HttpClient Client ) : System

Защищенные методы

Метод Описание
GetTopFromQuery ( int id, StatsDatabase Database ) : List

Processes the query ID and returns the results

Приватные методы

Метод Описание
FinishQuery ( string action, BF2Statistics.Database.QueryBuilder.SelectQueryBuilder builder, bool &valueIsDecimal ) : void

This method is used to fetch an array of columns we need in our detailed rankings page. It also returns in 2 out variables additional data we need to adjust our query

GetHeaderName ( string action ) : string

Converts the url action to a string that is used in the table header

ShowIndex ( ) : void
ShowRankingType ( MvcRoute Route ) : void

Описание методов

FormatNumber() публичный Метод

public FormatNumber ( object Num ) : string
Num object
Результат string

GetPage() публичный Метод

Returns the page number that the players stat would appear
public GetPage ( int index ) : int
index int The player position
Результат int

GetTopFromQuery() защищенный Метод

Processes the query ID and returns the results
protected GetTopFromQuery ( int id, StatsDatabase Database ) : List
id int The Query id
Database BF2Statistics.Database.StatsDatabase The stats database connection
Результат List

HandleRequest() публичный Метод

public HandleRequest ( MvcRoute Route ) : void
Route MvcRoute
Результат void

RankingsController() публичный Метод

public RankingsController ( HttpClient Client ) : System
Client HttpClient
Результат System

Описание свойств

ActionNames защищенное статическое свойство

An array of Action names in the URL that are accepted
protected static string[] ActionNames
Результат string[]

IndexCatagories защищенное статическое свойство

A static array of stats catagories on the ranking index page
protected static List IndexCatagories
Результат List

IndexQueries защищенное статическое свойство

A static array of all the different ranking sections queries
protected static string[] IndexQueries
Результат string[]