C# Класс ActivEarth.Objects.Competition.Badges.Badge

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Badge ( ) : System

Empty constructor for reading back in from the DB.

Badge ( int userId, Statistic statistic ) : System

Creates a new badge belonging to a user, based on a specific statistic.

Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System

Creates a new badge belonging to a user, based on a specific statistic.

GetNextLevelRequirement ( ) : float

Returns the statistic value required to get to the next level of the badge.

GetNextLevelReward ( ) : int

Returns the number of Activity Points awarded for achieving the next level of the badge.

IsComplete ( ) : bool

Whether or not the badge path has been completed.

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

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

Empty constructor for reading back in from the DB.
public Badge ( ) : System
Результат System

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

Creates a new badge belonging to a user, based on a specific statistic.
public Badge ( int userId, Statistic statistic ) : System
userId int
statistic Statistic Statistic to which the Badge is bound.
Результат System

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

Creates a new badge belonging to a user, based on a specific statistic.
public Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System
userId int
statistic Statistic Statistic to which the Badge is bound.
levelValues float
levelPoints int
imagePaths string
Результат System

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

Returns the statistic value required to get to the next level of the badge.
public GetNextLevelRequirement ( ) : float
Результат float

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

Returns the number of Activity Points awarded for achieving the next level of the badge.
public GetNextLevelReward ( ) : int
Результат int

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

Whether or not the badge path has been completed.
public IsComplete ( ) : bool
Результат bool