C# Class BF2Statistics.Web.Bf2Stats.PlayerController

Inheritance: Controller
Exibir arquivo Open project: BF2Statistics/ControlCenter

Protected Properties

Property Type Description
Database BF2Statistics.Database.StatsDatabase
Pid int
Rows object>>.List
StatsQueries string[]

Public Methods

Method Description
GetPage ( int index ) : int

Returns the page number that the players stat would appear

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

Private Methods

Method Description
GetWeaponTblPrefix ( int WeaponId ) : string

Since secondary weapons (such as knife and c4) use column prefix's in the database, we use this method to return it based on weapons ID

ShowHistory ( ) : void
ShowRankings ( ) : void
ShowStats ( ) : void

Method Details

GetPage() public method

Returns the page number that the players stat would appear
public GetPage ( int index ) : int
index int The player position
return int

HandleRequest() public method

public HandleRequest ( MvcRoute Route ) : void
Route MvcRoute
return void

PlayerController() public method

public PlayerController ( HttpClient Client ) : System
Client HttpClient
return System

Property Details

Database protected_oe property

Gets or Sets an open stats database connection
protected StatsDatabase,BF2Statistics.Database Database
return BF2Statistics.Database.StatsDatabase

Pid protected_oe property

The player ID
protected int Pid
return int

Rows protected_oe property

Gets or Sets the working row set from the database
protected List> Rows
return object>>.List

StatsQueries protected_oe property

The array of queries for the players "Stats" section. Allows for looping, thus reducing code length
protected string[] StatsQueries
return string[]