C# Класс Ru.GameSchool.BusinessLayer.Services.GameService

Наследование: BaseService, IExternalPointContainer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
GetPointsByAndNotUserInfoIdCourseId ( int courseId ) : IEnumerable

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

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

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
Результат void

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

Handles point calculations based on grade.
public CalculatePointsByGrade ( double grade, int pointPerGrade ) : int
grade double
pointPerGrade int
Результат int

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

Gets all userinfos instance
public GetPoints ( int userInfoId, int levelId ) : int
userInfoId int
levelId int
Результат int

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

Get point from user and course id
public GetPointsByUserInfoIdAndCourseId ( int userInfoId, int courseId ) : int
userInfoId int
courseId int
Результат int

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

Gets points compaired to other users
public GetPointsComparedToUsers ( int userInfoId, int courseId ) : void
userInfoId int
courseId int
Результат void

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

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
Результат Tuple

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

get the highest number of points in course
public GetTopPoints ( int courseId ) : int
courseId int
Результат int

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

Returns the points of the top 10 users in the game
public GetTopTenList ( ) : UserInfo>>.IEnumerable
Результат UserInfo>>.IEnumerable

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

Returns a list of the top ranking users for the course.
public GetTopTenList ( int courseId ) : IEnumerable
courseId int
Результат IEnumerable