![]() |
droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
|
#include <WebUserDTO.hpp>
Public Member Functions | |
| WebUserDTO ()=default | |
| WebUserDTO (size_t id, const std::string &username, const std::string &password, size_t clearance, const std::string &email, const std::string &confirm_code="", bool is_verified=false) | |
| Constructor for a WebUserDTO Object. | |
| WebUserDTO (const RowDTOAdapter &row) | |
| Constructor to construct a WebUserDTO Object from a Database Row. | |
Public Attributes | |
| size_t | id |
| std::string | username |
| std::string | password |
| size_t | clearance |
| std::string | |
| std::string | confirm_code |
| bool | is_verified |
|
default |
| WebUserDTO::WebUserDTO | ( | size_t | id, |
| const std::string & | username, | ||
| const std::string & | password, | ||
| size_t | clearance, | ||
| const std::string & | email, | ||
| const std::string & | confirm_code = "", | ||
| bool | is_verified = false ) |
Constructor for a WebUserDTO Object.
| id | the user id |
| username | the users username |
| password | the users password |
| clearance | the users clearance level (used for access control) |
| the users email address | |
| confirm_code | the confirmation code that was sent to the user to validate the email address |
| is_verified | did the user already verify his email? |
|
explicit |
Constructor to construct a WebUserDTO Object from a Database Row.
| row | The User-Database Row the WebUserDTO Object should pull its data from |
| size_t WebUserDTO::clearance |
| std::string WebUserDTO::confirm_code |
| std::string WebUserDTO::email |
| size_t WebUserDTO::id |
| bool WebUserDTO::is_verified |
| std::string WebUserDTO::password |
| std::string WebUserDTO::username |