droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
UserDTO.hpp
Go to the documentation of this file.
1
/*
2
* (c) Copyright erarnitox.de - All rights reserved
3
* Author: Erarnitox <david@erarnitox.de>
4
*
5
* License: MIT License
6
*
7
* Description:
8
*
9
* Documentation: https://droplet.erarnitox.de/doxygen/html/
10
*/
11
12
#pragma once
13
14
#include <
RowDTOAdapter.hpp
>
15
#include <string>
16
17
//-----------------------------------------------------
18
//
19
//-----------------------------------------------------
20
class
UserDTO
{
21
public
:
22
size_t
user_id
;
23
std::string
user_name
;
24
std::string
color
;
25
size_t
exp
;
26
size_t
is_subscribed
;
27
28
UserDTO
() =
default
;
29
UserDTO
(
size_t
user_id
,
30
const
std::string&
user_name
,
31
const
std::string&
color
=
"00FF00"
,
32
size_t
exp
= 0,
33
size_t
is_subscribed
= 0);
34
35
explicit
UserDTO
(
const
RowDTOAdapter
& row);
36
};
RowDTOAdapter.hpp
RowDTOAdapter
Definition
RowDTOAdapter.hpp:20
UserDTO::color
std::string color
Definition
UserDTO.hpp:24
UserDTO::user_id
size_t user_id
Definition
UserDTO.hpp:22
UserDTO::UserDTO
UserDTO()=default
UserDTO::user_name
std::string user_name
Definition
UserDTO.hpp:23
UserDTO::is_subscribed
size_t is_subscribed
Definition
UserDTO.hpp:26
UserDTO::exp
size_t exp
Definition
UserDTO.hpp:25
src
bot_library
persistence
UserDTO.hpp
Generated by
1.18.0