Method | Description | |
---|---|---|
CreateNewStatisticForUser ( int userId, Statistic statType, float val ) : int |
Saves a user statistic as a new entry in the DB.
|
|
GetAllStatisticsByUserId ( int userId ) : List |
Retrieves all of a User's Statistics from the DB.
|
|
GetStatisticFromStatisticId ( int statisticId ) : |
Retrieve's a UserStatistic from the DB based on the statistic's ID.
|
|
GetStatisticFromUserIdAndStatType ( int userId, Statistic statType ) : |
Retrieves a User's Statistic from the DB based on the user's ID and statistic type.
|
|
UpdateUserStatistic ( |
Updates an existing UserStatistic in the DB.
|
public static CreateNewStatisticForUser ( int userId, Statistic statType, float val ) : int | ||
userId | int | User to create stat for. |
statType | Statistic | Statistic type to create. |
val | float | Value of the statistic. |
return | int |
public static GetAllStatisticsByUserId ( int userId ) : List |
||
userId | int | ID of user to fetch statistic info for. |
return | List |
public static GetStatisticFromStatisticId ( int statisticId ) : |
||
statisticId | int | ID of statistic to fetch. |
return |
public static GetStatisticFromUserIdAndStatType ( int userId, Statistic statType ) : |
||
userId | int | ID of user to fetch statistic info for. |
statType | Statistic | Type of statistic to retrieve from user. |
return |
public static UpdateUserStatistic ( |
||
statistic | UserStatistic whose record needs updating. | |
return | bool |