39 lines
492 B
C++
39 lines
492 B
C++
/*
|
|
* User.h
|
|
*
|
|
* Created on: Jan 25, 2012
|
|
* Author: Simon
|
|
*/
|
|
|
|
#ifndef USER_H_
|
|
#define USER_H_
|
|
|
|
#include <string>
|
|
|
|
enum Elevation
|
|
{
|
|
ElevationAdmin, ElevationModerator, ElevationNone
|
|
};
|
|
|
|
class User
|
|
{
|
|
public:
|
|
int ID;
|
|
std::string Username;
|
|
std::string SessionID;
|
|
std::string SessionKey;
|
|
Elevation UserElevation;
|
|
User(int id, std::string username):
|
|
ID(id),
|
|
Username(username),
|
|
SessionID(""),
|
|
SessionKey(""),
|
|
UserElevation(ElevationNone)
|
|
{
|
|
|
|
}
|
|
};
|
|
|
|
|
|
#endif /* USER_H_ */
|