C# 클래스 ActivEarth.DAO.UserStatisticDAO

파일 보기 프로젝트 열기: mlcamilli/ActivEarth

공개 메소드들

메소드 설명
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 ) : UserStatistic

Retrieve's a UserStatistic from the DB based on the statistic's ID.

GetStatisticFromUserIdAndStatType ( int userId, Statistic statType ) : UserStatistic

Retrieves a User's Statistic from the DB based on the user's ID and statistic type.

UpdateUserStatistic ( UserStatistic statistic ) : bool

Updates an existing UserStatistic in the DB.

메소드 상세

CreateNewStatisticForUser() 공개 정적인 메소드

Saves a user statistic as a new entry 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.
리턴 int

GetAllStatisticsByUserId() 공개 정적인 메소드

Retrieves all of a User's Statistics from the DB.
public static GetAllStatisticsByUserId ( int userId ) : List
userId int ID of user to fetch statistic info for.
리턴 List

GetStatisticFromStatisticId() 공개 정적인 메소드

Retrieve's a UserStatistic from the DB based on the statistic's ID.
public static GetStatisticFromStatisticId ( int statisticId ) : UserStatistic
statisticId int ID of statistic to fetch.
리턴 ActivEarth.Objects.Profile.UserStatistic

GetStatisticFromUserIdAndStatType() 공개 정적인 메소드

Retrieves a User's Statistic from the DB based on the user's ID and statistic type.
public static GetStatisticFromUserIdAndStatType ( int userId, Statistic statType ) : UserStatistic
userId int ID of user to fetch statistic info for.
statType Statistic Type of statistic to retrieve from user.
리턴 ActivEarth.Objects.Profile.UserStatistic

UpdateUserStatistic() 공개 정적인 메소드

Updates an existing UserStatistic in the DB.
public static UpdateUserStatistic ( UserStatistic statistic ) : bool
statistic ActivEarth.Objects.Profile.UserStatistic UserStatistic whose record needs updating.
리턴 bool