C# Класс ActivEarth.Objects.Competition.ActivityScore

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

ActivityScore() публичный Метод

Creates a new ActivityScore, initialized to 0.
public ActivityScore ( ) : System.Runtime.Serialization
Результат System.Runtime.Serialization

ActivityScore() публичный Метод

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
Результат System.Runtime.Serialization

AddBadgePoints() публичный Метод

Adds newly earned Activity Points from badges.
public AddBadgePoints ( int points ) : void
points int Number of points to add to the Activity Score.
Результат void

AddChallengePoints() публичный Метод

Adds newly earned Activity Points from Challenges.
public AddChallengePoints ( int points ) : void
points int Number of points to add to the Activity Score.
Результат void

AddContestPoints() публичный Метод

Adds newly earned Activity Points from Contests.
public AddContestPoints ( int points ) : void
points int Number of points to add to the Activity Score.
Результат void