droplet
1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
PortalDTO.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.portals (
8
id serial4 NOT NULL,
9
guild_id int8 null,
10
channel_id int8 null
11
);
12
*/
13
class
PortalDTO
{
14
public
:
15
size_t
guild_id
;
16
size_t
channel_id
;
17
18
PortalDTO
() =
default
;
19
PortalDTO
(
size_t
guild_id
,
size_t
channel_id
);
20
21
PortalDTO
(
const
RowDTOAdapter
& row);
22
};
RowDTOAdapter.hpp
PortalDTO
Definition
PortalDTO.hpp:13
PortalDTO::channel_id
size_t channel_id
Definition
PortalDTO.hpp:16
PortalDTO::PortalDTO
PortalDTO()=default
PortalDTO::guild_id
size_t guild_id
Definition
PortalDTO.hpp:15
RowDTOAdapter
Definition
RowDTOAdapter.hpp:20
src
bot_library
commands
portal
repositories
PortalDTO.hpp
Generated by
1.12.0