C# Class ActivEarth.Objects.Competition.ActivityScore

Mostra file Open project: mlcamilli/ActivEarth Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

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

ActivityScore() public method

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
return System.Runtime.Serialization

AddBadgePoints() public method

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

AddChallengePoints() public method

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

AddContestPoints() public method

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