droplet
1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
MemberDTO.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
RowDTOAdapter.hpp
>
4
#include <string>
5
6
/*
7
CREATE TABLE public.members (
8
id serial4 NOT NULL,
9
discord_id int8 null,
10
picture_url varchar null,
11
discord varchar null
12
);
13
*/
14
class
MemberDTO
{
15
public
:
16
size_t
discord_id
;
17
std::string
picture_url
;
18
std::string
username
;
19
20
MemberDTO
() =
default
;
21
MemberDTO
(
size_t
discord_id
,
const
std::string&
picture_url
,
const
std::string&
username
);
22
23
MemberDTO
(
const
RowDTOAdapter
& row);
24
};
RowDTOAdapter.hpp
MemberDTO
Definition
MemberDTO.hpp:14
MemberDTO::username
std::string username
Definition
MemberDTO.hpp:18
MemberDTO::picture_url
std::string picture_url
Definition
MemberDTO.hpp:17
MemberDTO::MemberDTO
MemberDTO()=default
MemberDTO::discord_id
size_t discord_id
Definition
MemberDTO.hpp:16
RowDTOAdapter
Definition
RowDTOAdapter.hpp:20
src
bot_library
commands
member
repositories
MemberDTO.hpp
Generated by
1.12.0