-
Notifications
You must be signed in to change notification settings - Fork 5
/
User.h
37 lines (31 loc) · 771 Bytes
/
User.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// Created by victor on 4/11/17.
//
#ifndef RESTDBXX_USER_H
#define RESTDBXX_USER_H
#include <string>
#include <boost/date_time/local_time/local_date_time.hpp>
#include <folly/dynamic.h>
using std::string;
using namespace boost::date_time;
namespace restdbxx {
class User {
private:
string username;
string password;
bool is_active;
public:
const string &getUsername() const;
void setUsername(const string &username);
const string &getPassword() const;
void setPassword(const string &password);
bool isIs_active() const;
void setIs_active(bool is_active);
folly::dynamic toDynamic() {
return folly::dynamic::object("username", username)
("password", password)
("is_active", is_active);
}
};
}
#endif //RESTDBXX_USER_H