Method | Description | |
---|---|---|
CreateNewBadge ( |
Saves a badge as a new entry in the DB.
|
|
GetAllBadges ( ) : IEnumerable |
||
GetBadgeFromBadgeId ( int badgeId ) : |
Retrieves a badge matching a provided ID.
|
|
GetBadgeFromUserIdAndStatistic ( int userId, Statistic statistic ) : |
Retrieves a badge of a particular statistic for a specific user.
|
|
GetBadgesFromUserId ( int userId ) : List |
Retrieves the collection of badges belonging to a given user.
|
|
UpdateBadge ( |
Updates an existing Badge in the DB.
|
Method | Description | |
---|---|---|
LoadExternalBadgeData ( |
Loads the information stored in external tables for the badge (LevelRequirements, LevelRewards, etc.)
|
public static CreateNewBadge ( |
||
badge | Badge object to add to the DB. | |
return | int |
public static GetBadgeFromBadgeId ( int badgeId ) : |
||
badgeId | int | Identifier of the badge. |
return |
public static GetBadgeFromUserIdAndStatistic ( int userId, Statistic statistic ) : |
||
userId | int | Identifier of the badge owner. |
statistic | Statistic | Statistic tracked by the badge. |
return |
public static GetBadgesFromUserId ( int userId ) : List |
||
userId | int | |
return | List |
public static UpdateBadge ( |
||
badge | Badge whose record needs updating. | |
return | bool |