Method | Description | |
---|---|---|
CreateBadge ( int userId, Statistic statistic ) : |
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.
|
public static CreateBadge ( int userId, Statistic statistic ) : |
||
userId | int | |
statistic | Statistic | Statistic being tracked by the badge. |
return |
public static GetFormattedProgress ( int badgeId ) : string | ||
badgeId | int | |
return | string |
public static UpdateBadge ( int userId, Statistic statistic ) : int | ||
userId | int | User to update. |
statistic | Statistic | Statistic tracked by the badge to be updated. |
return | int |