2012-01-25 11:21:55 -06:00
|
|
|
#ifndef USER_H_
|
|
|
|
#define USER_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2012-01-31 12:49:14 -06:00
|
|
|
|
2012-01-25 11:21:55 -06:00
|
|
|
class User
|
|
|
|
{
|
|
|
|
public:
|
2012-08-12 16:32:57 -05:00
|
|
|
enum Elevation
|
|
|
|
{
|
|
|
|
ElevationAdmin, ElevationModerator, ElevationNone
|
|
|
|
};
|
2017-12-28 11:03:26 -06:00
|
|
|
int UserID;
|
2012-01-25 11:21:55 -06:00
|
|
|
std::string Username;
|
|
|
|
std::string SessionID;
|
|
|
|
std::string SessionKey;
|
2012-01-31 12:49:14 -06:00
|
|
|
Elevation UserElevation;
|
2012-01-25 11:21:55 -06:00
|
|
|
User(int id, std::string username):
|
2017-12-28 11:03:26 -06:00
|
|
|
UserID(id),
|
2012-01-31 12:49:14 -06:00
|
|
|
Username(username),
|
|
|
|
SessionID(""),
|
|
|
|
SessionKey(""),
|
|
|
|
UserElevation(ElevationNone)
|
2012-01-25 11:21:55 -06:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* USER_H_ */
|