droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
WebUserDTO Class Reference

#include <WebUserDTO.hpp>

Collaboration diagram for WebUserDTO:

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 email
std::string confirm_code
bool is_verified

Constructor & Destructor Documentation

◆ WebUserDTO() [1/3]

WebUserDTO::WebUserDTO ( )
default

◆ WebUserDTO() [2/3]

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.

Parameters
idthe user id
usernamethe users username
passwordthe users password
clearancethe users clearance level (used for access control)
emailthe users email address
confirm_codethe confirmation code that was sent to the user to validate the email address
is_verifieddid the user already verify his email?

◆ WebUserDTO() [3/3]

WebUserDTO::WebUserDTO ( const RowDTOAdapter & row)
explicit

Constructor to construct a WebUserDTO Object from a Database Row.

Parameters
rowThe User-Database Row the WebUserDTO Object should pull its data from

Member Data Documentation

◆ clearance

size_t WebUserDTO::clearance

◆ confirm_code

std::string WebUserDTO::confirm_code

◆ email

std::string WebUserDTO::email

◆ id

size_t WebUserDTO::id

◆ is_verified

bool WebUserDTO::is_verified

◆ password

std::string WebUserDTO::password

◆ username

std::string WebUserDTO::username

The documentation for this class was generated from the following files: