C# Class ActivEarth.Objects.Competition.ActivityScore

Afficher le fichier Open project: mlcamilli/ActivEarth Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ActivityScore ( ) : System.Runtime.Serialization

Creates a new ActivityScore, initialized to 0.

ActivityScore ( int badgeScore, int challengeScore, int contestScore ) : System.Runtime.Serialization

Creates a new ActivityScore, initialized to the given parameters. Used to rebuild Group and User objects when retreiving data from the DB.

AddBadgePoints ( int points ) : void

Adds newly earned Activity Points from badges.

AddChallengePoints ( int points ) : void

Adds newly earned Activity Points from Challenges.

AddContestPoints ( int points ) : void

Adds newly earned Activity Points from Contests.

Method Details

ActivityScore() public méthode

Creates a new ActivityScore, initialized to 0.
public ActivityScore ( ) : System.Runtime.Serialization
Résultat System.Runtime.Serialization

ActivityScore() public méthode

Creates a new ActivityScore, initialized to the given parameters. Used to rebuild Group and User objects when retreiving data from the DB.
public ActivityScore ( int badgeScore, int challengeScore, int contestScore ) : System.Runtime.Serialization
badgeScore int The BadgeScore stored in the DB
challengeScore int The ChallengeScore stored in the DB
contestScore int The ContestScore stored in the DB
Résultat System.Runtime.Serialization

AddBadgePoints() public méthode

Adds newly earned Activity Points from badges.
public AddBadgePoints ( int points ) : void
points int Number of points to add to the Activity Score.
Résultat void

AddChallengePoints() public méthode

Adds newly earned Activity Points from Challenges.
public AddChallengePoints ( int points ) : void
points int Number of points to add to the Activity Score.
Résultat void

AddContestPoints() public méthode

Adds newly earned Activity Points from Contests.
public AddContestPoints ( int points ) : void
points int Number of points to add to the Activity Score.
Résultat void