droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
NotificationDTO.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.notifications
8
(
9
id serial4 NOT NULL,
10
guild_id int8 null,
11
channel_id int8 null,
12
type varchar,
13
data varchar,
14
message varchar,
15
timestep int8 null
16
);
17
18
*/
19
class
NotificationDTO
{
20
public
:
21
size_t
guild_id
;
22
size_t
channel_id
;
23
size_t
timestep
;
24
std::string
type
;
25
std::string
data
;
26
std::string
message
;
27
28
NotificationDTO
() =
default
;
29
NotificationDTO
(
size_t
guild_id
,
30
size_t
channel_id
,
31
const
std::string&
type
,
32
const
std::string&
data
,
33
const
std::string&
message
,
34
size_t
timestep
= 3600);
35
36
NotificationDTO
(
const
RowDTOAdapter
& row);
37
};
RowDTOAdapter.hpp
NotificationDTO::data
std::string data
Definition
NotificationDTO.hpp:25
NotificationDTO::channel_id
size_t channel_id
Definition
NotificationDTO.hpp:22
NotificationDTO::NotificationDTO
NotificationDTO()=default
NotificationDTO::type
std::string type
Definition
NotificationDTO.hpp:24
NotificationDTO::message
std::string message
Definition
NotificationDTO.hpp:26
NotificationDTO::guild_id
size_t guild_id
Definition
NotificationDTO.hpp:21
NotificationDTO::timestep
size_t timestep
Definition
NotificationDTO.hpp:23
RowDTOAdapter
Definition
RowDTOAdapter.hpp:20
src
bot_library
persistence
NotificationDTO.hpp
Generated by
1.18.0