C# 클래스 ActivEarth.Server.Service.Statistics.StatisticManager

Serves as a wrapper class for the StatisticDAO class, further abstracting actions.
파일 보기 프로젝트 열기: mlcamilli/ActivEarth 1 사용 예제들

공개 메소드들

메소드 설명
GetUserStatistic ( Statistic statToGet ) : UserStatistic

Gets a statistic for a user based on the statistic type.

GetUserStatistic ( int id ) : UserStatistic

Returns a User's Statistic based on its ID.

SetUserStatistic ( Statistic statToSet, float val ) : void
SetUserStatistic ( int userId, Statistic statistic, float value ) : void

Sets the value of a statistic for a specific user.

StatisticManager ( User user ) : System
UpdateUserStatistics ( ) : void

메소드 상세

GetUserStatistic() 공개 메소드

Gets a statistic for a user based on the statistic type.
public GetUserStatistic ( Statistic statToGet ) : UserStatistic
statToGet Statistic Statistic to retrieve.
리턴 ActivEarth.Objects.Profile.UserStatistic

GetUserStatistic() 공개 메소드

Returns a User's Statistic based on its ID.
public GetUserStatistic ( int id ) : UserStatistic
id int The ID of the UserStatistic to get.
리턴 ActivEarth.Objects.Profile.UserStatistic

SetUserStatistic() 공개 메소드

public SetUserStatistic ( Statistic statToSet, float val ) : void
statToSet Statistic
val float
리턴 void

SetUserStatistic() 공개 정적인 메소드

Sets the value of a statistic for a specific user.
public static SetUserStatistic ( int userId, Statistic statistic, float value ) : void
userId int ID of the user to update.
statistic Statistic Statistic to be updated.
value float New value for the statistic.
리턴 void

StatisticManager() 공개 메소드

public StatisticManager ( User user ) : System
user ActivEarth.Objects.Profile.User
리턴 System

UpdateUserStatistics() 공개 메소드

public UpdateUserStatistics ( ) : void
리턴 void