2013-03-16 12:45:18 -05:00
|
|
|
#ifndef USERINFO_H_
|
|
|
|
#define USERINFO_H_
|
|
|
|
|
2018-04-30 13:13:24 -05:00
|
|
|
#include "common/String.h"
|
2013-03-16 12:45:18 -05:00
|
|
|
|
|
|
|
class UserInfo
|
|
|
|
{
|
|
|
|
public:
|
2017-12-28 11:03:26 -06:00
|
|
|
int UserID;
|
2015-07-09 13:25:01 -05:00
|
|
|
int age;
|
2018-04-30 13:13:24 -05:00
|
|
|
ByteString username;
|
|
|
|
String biography;
|
|
|
|
String location;
|
|
|
|
ByteString website;
|
2015-07-09 13:25:01 -05:00
|
|
|
|
|
|
|
int saveCount;
|
|
|
|
float averageScore;
|
|
|
|
int highestScore;
|
|
|
|
|
|
|
|
int topicCount;
|
|
|
|
int topicReplies;
|
|
|
|
int reputation;
|
|
|
|
|
2018-04-30 13:13:24 -05:00
|
|
|
UserInfo(int id, int age, ByteString username, String biography, String location, ByteString website, int saveCount, float averageScore, int highestScore, int topicCount, int topicReplies, int reputation):
|
2017-12-28 11:03:26 -06:00
|
|
|
UserID(id),
|
2015-07-09 13:25:01 -05:00
|
|
|
age(age),
|
|
|
|
username(username),
|
|
|
|
biography(biography),
|
|
|
|
location(location),
|
|
|
|
website(website),
|
|
|
|
saveCount(saveCount),
|
|
|
|
averageScore(averageScore),
|
|
|
|
highestScore(highestScore),
|
|
|
|
topicCount(topicCount),
|
|
|
|
topicReplies(topicReplies),
|
|
|
|
reputation(reputation)
|
2013-03-16 12:45:18 -05:00
|
|
|
{ }
|
2013-03-21 16:49:06 -05:00
|
|
|
UserInfo() {}
|
2013-03-16 12:45:18 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* USER_H_ */
|