C# 클래스 ActivEarth.Objects.Competition.Badges.Badge

파일 보기 프로젝트 열기: mlcamilli/ActivEarth 1 사용 예제들

공개 메소드들

메소드 설명
Badge ( ) : System

Empty constructor for reading back in from the DB.

Badge ( int userId, Statistic statistic ) : System

Creates a new badge belonging to a user, based on a specific statistic.

Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System

Creates a new badge belonging to a user, based on a specific statistic.

GetNextLevelRequirement ( ) : float

Returns the statistic value required to get to the next level of the badge.

GetNextLevelReward ( ) : int

Returns the number of Activity Points awarded for achieving the next level of the badge.

IsComplete ( ) : bool

Whether or not the badge path has been completed.

메소드 상세

Badge() 공개 메소드

Empty constructor for reading back in from the DB.
public Badge ( ) : System
리턴 System

Badge() 공개 메소드

Creates a new badge belonging to a user, based on a specific statistic.
public Badge ( int userId, Statistic statistic ) : System
userId int
statistic Statistic Statistic to which the Badge is bound.
리턴 System

Badge() 공개 메소드

Creates a new badge belonging to a user, based on a specific statistic.
public Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System
userId int
statistic Statistic Statistic to which the Badge is bound.
levelValues float
levelPoints int
imagePaths string
리턴 System

GetNextLevelRequirement() 공개 메소드

Returns the statistic value required to get to the next level of the badge.
public GetNextLevelRequirement ( ) : float
리턴 float

GetNextLevelReward() 공개 메소드

Returns the number of Activity Points awarded for achieving the next level of the badge.
public GetNextLevelReward ( ) : int
리턴 int

IsComplete() 공개 메소드

Whether or not the badge path has been completed.
public IsComplete ( ) : bool
리턴 bool