droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
NotificationRepository.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 "IRepository.hpp"
15#include "NotificationDTO.hpp"
16
17//-----------------------------------------------------
18//
19//-----------------------------------------------------
20class NotificationRepository : public IRepository<NotificationDTO> {
21 public:
22 [[nodiscard]] bool create(const NotificationDTO& object) noexcept override;
23
24 [[nodiscard]] bool remove(size_t id) noexcept override;
25
26 [[nodiscard]] NotificationDTO get(size_t id) const noexcept override;
27
28 [[nodiscard]] bool update(const NotificationDTO& object) noexcept override;
29
30 [[nodiscard]] std::vector<NotificationDTO> getAll() const noexcept;
31};
Definition IRepository.hpp:19
Definition NotificationDTO.hpp:19
Definition NotificationRepository.hpp:20
NotificationDTO get(size_t id) const noexcept override
Definition NotificationRepository.cpp:74
std::vector< NotificationDTO > getAll() const noexcept
Definition NotificationRepository.cpp:89
bool update(const NotificationDTO &object) noexcept override
Definition NotificationRepository.cpp:53
bool create(const NotificationDTO &object) noexcept override
Definition NotificationRepository.cpp:23
bool remove(size_t id) noexcept override
Definition NotificationRepository.cpp:40