Class that stores the information of a visited place.
More...
|
| VisitedPlace (string type, int id, int timesVisited, long lastVisitTimestamp) |
| Constructor that simply set the given params as attributes of this object. More...
|
|
string | ToJson () |
| Converts this object in a string JSON formatted.
More...
|
|
void | newVisitAt (long timeOfTheVisit) |
| this method register a new visit for the represented place. It adds one new visit and change the lastVisitTimestamp_ to the given timestamp. More...
|
|
|
string | type_ |
| string that contains the type of the represented place. More...
|
|
int | id_ |
| int that contains the id of the represented place. More...
|
|
int | timesVisited_ |
| int that contains the times that the current user has visited the represented place. More...
|
|
long | lastVisitTimestamp_ |
| long that contains the timestamp that the current user last visit to the represented place. More...
|
|
Class that stores the information of a visited place.
◆ VisitedPlace()
VisitedPlace.VisitedPlace |
( |
string |
type, |
|
|
int |
id, |
|
|
int |
timesVisited, |
|
|
long |
lastVisitTimestamp |
|
) |
| |
Constructor that simply set the given params as attributes of this object.
- Parameters
-
string | type of the represented place. |
int | id of the represented place. |
int | times that the current user has visited the represented place. |
long | timestamp of the last visit of the current user to the represented place. |
◆ newVisitAt()
void VisitedPlace.newVisitAt |
( |
long |
timeOfTheVisit | ) |
|
this method register a new visit for the represented place. It adds one new visit and change the lastVisitTimestamp_ to the given timestamp.
- Parameters
-
long | timestamp of the visit |
◆ ToJson()
string VisitedPlace.ToJson |
( |
| ) |
|
Converts this object in a string JSON formatted.
- Returns
- string that contains a JSON conversion of the current object.
◆ id_
int that contains the id of the represented place.
◆ lastVisitTimestamp_
long VisitedPlace.lastVisitTimestamp_ |
long that contains the timestamp that the current user last visit to the represented place.
◆ timesVisited_
int VisitedPlace.timesVisited_ |
int that contains the times that the current user has visited the represented place.
◆ type_
string VisitedPlace.type_ |
string that contains the type of the represented place.
The documentation for this class was generated from the following file: