Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
UserStatistics Struct Reference

Public Member Functions

 UserStatistics (int _total_time_played_sec, int _total_games_played)
 
void read (const QJsonObject &json)
 

Static Public Member Functions

static void write (QJsonObject &json)
 

Public Attributes

int total_time_played_sec = 0
 
int total_games_played = 0
 

Detailed Description

Definition at line 6 of file userstatistics.h.

Constructor & Destructor Documentation

◆ UserStatistics()

UserStatistics::UserStatistics ( int  _total_time_played_sec,
int  _total_games_played 
)

Definition at line 5 of file userstatistics.cpp.

Member Function Documentation

◆ read()

void UserStatistics::read ( const QJsonObject &  json)

Definition at line 11 of file userstatistics.cpp.

◆ write()

void UserStatistics::write ( QJsonObject &  json)
static

Definition at line 22 of file userstatistics.cpp.

Member Data Documentation

◆ total_games_played

int UserStatistics::total_games_played = 0

Definition at line 15 of file userstatistics.h.

◆ total_time_played_sec

int UserStatistics::total_time_played_sec = 0

Definition at line 14 of file userstatistics.h.


The documentation for this struct was generated from the following files: