DiscoverTenerife
Public Member Functions | Private Attributes | List of all members
challengeData Class Reference

Class that stores the information of one challenge. More...

Public Member Functions

 challengeData (Dictionary< string, string > stringInformation)
 The constructor of the class, it initialices all the properties. It expects a dictionary with at least the following entries: placeId_, placeType_, startTimestamp_ and challengerId_. More...
 
int getPlaceId ()
 getter of the place's id. More...
 
string getPlaceType ()
 getter of the place's type. More...
 
long getStartTimestamp ()
 getter of the timestamp of the challenge start. More...
 
string getChallengerId ()
 getter of the id the user that has sended the challenge. More...
 
string ToJson ()
 This method returns a string conversion, that follows the JSON format, of this object. More...
 
Dictionary< string, string > toDictionaryVersion ()
 Getter of the dictionaryVersion property. More...
 

Private Attributes

int placeId_
 Id of the site that the user has to visit to complete the challenge. More...
 
string placeType_
 type of the site that the user has to visit to complete the challenge. More...
 
long startTimestamp_
 ticks where the challenge was started. More...
 
string challengerId_
 User ID of the user that has sended this challenge. More...
 
Dictionary< string, string > dictionaryVersion_
 This property stores the value of the rest the other properties as strings. More...
 

Detailed Description

Class that stores the information of one challenge.

Constructor & Destructor Documentation

◆ challengeData()

challengeData.challengeData ( Dictionary< string, string >  stringInformation)

The constructor of the class, it initialices all the properties. It expects a dictionary with at least the following entries: placeId_, placeType_, startTimestamp_ and challengerId_.

Parameters
Dictionary<string,string>that contains the string version of the callenge's data.

Member Function Documentation

◆ getChallengerId()

string challengeData.getChallengerId ( )

getter of the id the user that has sended the challenge.

Returns
string with the id of the user that has sended the challenge.

◆ getPlaceId()

int challengeData.getPlaceId ( )

getter of the place's id.

Returns
int with the id of the place that the user has to visit to complete the challenge.

◆ getPlaceType()

string challengeData.getPlaceType ( )

getter of the place's type.

Returns
string with the type of the place that the user has to visit to complete the challenge.

◆ getStartTimestamp()

long challengeData.getStartTimestamp ( )

getter of the timestamp of the challenge start.

Returns
long with the ticks of when the challenge was sended.

◆ toDictionaryVersion()

Dictionary< string, string > challengeData.toDictionaryVersion ( )

Getter of the dictionaryVersion property.

◆ ToJson()

string challengeData.ToJson ( )

This method returns a string conversion, that follows the JSON format, of this object.

Returns
string with the conversion of this object.

Member Data Documentation

◆ challengerId_

string challengeData.challengerId_
private

User ID of the user that has sended this challenge.

◆ dictionaryVersion_

Dictionary<string,string> challengeData.dictionaryVersion_
private

This property stores the value of the rest the other properties as strings.

◆ placeId_

int challengeData.placeId_
private

Id of the site that the user has to visit to complete the challenge.

◆ placeType_

string challengeData.placeType_
private

type of the site that the user has to visit to complete the challenge.

◆ startTimestamp_

long challengeData.startTimestamp_
private

ticks where the challenge was started.


The documentation for this class was generated from the following file: