C# 클래스 BF2Statistics.Web.Bf2Stats.PlayerController

상속: Controller
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter

보호된 프로퍼티들

프로퍼티 타입 설명
Database BF2Statistics.Database.StatsDatabase
Pid int
Rows object>>.List
StatsQueries string[]

공개 메소드들

메소드 설명
GetPage ( int index ) : int

Returns the page number that the players stat would appear

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

비공개 메소드들

메소드 설명
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

메소드 상세

GetPage() 공개 메소드

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

HandleRequest() 공개 메소드

public HandleRequest ( MvcRoute Route ) : void
Route MvcRoute
리턴 void

PlayerController() 공개 메소드

public PlayerController ( HttpClient Client ) : System
Client HttpClient
리턴 System

프로퍼티 상세

Database 보호되어 있는 프로퍼티

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

Pid 보호되어 있는 프로퍼티

The player ID
protected int Pid
리턴 int

Rows 보호되어 있는 프로퍼티

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

StatsQueries 보호되어 있는 프로퍼티

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