C# Класс ActivEarth.Server.Service.Competition.BadgeManager

Serves as a wrapper class for the BadgeDAO class, further abstracting actions.
Показать файл Открыть проект

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

Метод Описание
CreateBadge ( int userId, Statistic statistic ) : Badge

Creates a new Badge and adds it to the collection.

GetFormattedProgress ( int badgeId ) : string

Returns the formatted text progress report for the Badge (e.g., "34.5 / 40.0").

UpdateBadge ( int userId, Statistic statistic ) : int

Updates the badge to reflect a change in statistics.

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

CreateBadge() публичный статический Метод

Creates a new Badge and adds it to the collection.
public static CreateBadge ( int userId, Statistic statistic ) : Badge
userId int
statistic Statistic Statistic being tracked by the badge.
Результат ActivEarth.Objects.Competition.Badges.Badge

GetFormattedProgress() публичный статический Метод

Returns the formatted text progress report for the Badge (e.g., "34.5 / 40.0").
public static GetFormattedProgress ( int badgeId ) : string
badgeId int
Результат string

UpdateBadge() публичный статический Метод

Updates the badge to reflect a change in statistics.
public static UpdateBadge ( int userId, Statistic statistic ) : int
userId int User to update.
statistic Statistic Statistic tracked by the badge to be updated.
Результат int