droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
PortalDTO.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
CREATE TABLE public.portals (
19
id serial4 NOT NULL,
20
guild_id int8 null,
21
channel_id int8 null
22
);
23
*/
24
25
//-----------------------------------------------------
26
//
27
//-----------------------------------------------------
28
class
PortalDTO
{
29
public
:
30
size_t
guild_id
;
31
size_t
channel_id
;
32
33
PortalDTO
() =
default
;
34
PortalDTO
(
size_t
guild_id
,
size_t
channel_id
);
35
36
explicit
PortalDTO
(
const
RowDTOAdapter
& row);
37
};
RowDTOAdapter.hpp
PortalDTO::channel_id
size_t channel_id
Definition
PortalDTO.hpp:31
PortalDTO::PortalDTO
PortalDTO()=default
PortalDTO::guild_id
size_t guild_id
Definition
PortalDTO.hpp:30
RowDTOAdapter
Definition
RowDTOAdapter.hpp:20
src
bot_library
commands
portal
repositories
PortalDTO.hpp
Generated by
1.14.0