C# Class ActivEarth.Objects.Competition.Challenges.Challenge

Show file Open project: mlcamilli/ActivEarth Class Usage Examples

Public Methods

Method Description
Challenge ( ) : System

Parameterless constructor for reconstituting challenges from the DB.

Challenge ( string name, string description, int reward, bool persistent, System.DateTime startTime, int durationInDays, Statistic statistic, float requirement ) : System

Creates a new Challenge.

Method Details

Challenge() public method

Parameterless constructor for reconstituting challenges from the DB.
public Challenge ( ) : System
return System

Challenge() public method

Creates a new Challenge.
public Challenge ( string name, string description, int reward, bool persistent, System.DateTime startTime, int durationInDays, Statistic statistic, float requirement ) : System
name string Challenge Name.
description string Challenge Description.
reward int Points to be awarded upon completion of the Challenge.
persistent bool True if the Challenge is persistent, false otherwise.
startTime System.DateTime Time at which the challenge begins.
durationInDays int Number of days for which the challenge is active.
statistic Statistic Statistic to which the Challenge is bound.
requirement float Statistic value required to complete the challenge.
return System