C# Class Ru.GameSchool.BusinessLayer.Services.GameService

Inheritance: BaseService, IExternalPointContainer
Datei anzeigen Open project: davidein/Ru.GameSchool Class Usage Examples

Public Methods

Method Description
AddPointsToLevel ( int userInfoId, int levelId, int points, string description ) : void

Add x point to user on the level specified

CalculatePointsByGrade ( double grade, int pointPerGrade ) : int

Handles point calculations based on grade.

GetPoints ( int userInfoId, int levelId ) : int

Gets all userinfos instance

GetPointsByUserInfoIdAndCourseId ( int userInfoId, int courseId ) : int

Get point from user and course id

GetPointsComparedToUsers ( int userInfoId, int courseId ) : void

Gets points compaired to other users

GetScoreComparedToUsers ( int userInfoId, int courseId ) : Tuple

Fall sem skilar tuple af þínum stigum, þínu sæti, hvað þú þarft mörg stig til að komast sæti ofar og hvað keppandinn á eftir þér þarf mörg stig til að koamst yfir þig

GetTopPoints ( int courseId ) : int

get the highest number of points in course

GetTopTenList ( ) : UserInfo>>.IEnumerable

Returns the points of the top 10 users in the game

GetTopTenList ( int courseId ) : IEnumerable

Returns a list of the top ranking users for the course.

Private Methods

Method Description
GetPointsByAndNotUserInfoIdCourseId ( int courseId ) : IEnumerable

Method Details

AddPointsToLevel() public method

Add x point to user on the level specified
public AddPointsToLevel ( int userInfoId, int levelId, int points, string description ) : void
userInfoId int
levelId int
points int
description string
return void

CalculatePointsByGrade() public method

Handles point calculations based on grade.
public CalculatePointsByGrade ( double grade, int pointPerGrade ) : int
grade double
pointPerGrade int
return int

GetPoints() public method

Gets all userinfos instance
public GetPoints ( int userInfoId, int levelId ) : int
userInfoId int
levelId int
return int

GetPointsByUserInfoIdAndCourseId() public method

Get point from user and course id
public GetPointsByUserInfoIdAndCourseId ( int userInfoId, int courseId ) : int
userInfoId int
courseId int
return int

GetPointsComparedToUsers() public method

Gets points compaired to other users
public GetPointsComparedToUsers ( int userInfoId, int courseId ) : void
userInfoId int
courseId int
return void

GetScoreComparedToUsers() public method

Fall sem skilar tuple af þínum stigum, þínu sæti, hvað þú þarft mörg stig til að komast sæti ofar og hvað keppandinn á eftir þér þarf mörg stig til að koamst yfir þig
public GetScoreComparedToUsers ( int userInfoId, int courseId ) : Tuple
userInfoId int
courseId int
return Tuple

GetTopPoints() public method

get the highest number of points in course
public GetTopPoints ( int courseId ) : int
courseId int
return int

GetTopTenList() public method

Returns the points of the top 10 users in the game
public GetTopTenList ( ) : UserInfo>>.IEnumerable
return UserInfo>>.IEnumerable

GetTopTenList() public method

Returns a list of the top ranking users for the course.
public GetTopTenList ( int courseId ) : IEnumerable
courseId int
return IEnumerable