2012-01-25 11:21:55 -06:00
|
|
|
#ifndef USER_H_
|
|
|
|
#define USER_H_
|
|
|
|
|
2018-04-30 13:13:24 -05:00
|
|
|
#include "common/String.h"
|
2012-01-25 11:21:55 -06:00
|
|
|
|
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;
|
2018-04-30 13:13:24 -05:00
|
|
|
ByteString Username;
|
|
|
|
ByteString SessionID;
|
|
|
|
ByteString SessionKey;
|
2012-01-31 12:49:14 -06:00
|
|
|
Elevation UserElevation;
|
2018-04-30 13:13:24 -05:00
|
|
|
User(int id, ByteString 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_ */
|