droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
 
Loading...
Searching...
No Matches
NotificationRepository.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IRepository.hpp"
4#include "NotificationDTO.hpp"
5
6class NotificationRepository : public IRepository<NotificationDTO> {
7 public:
8 [[nodiscard]] auto create(const NotificationDTO& object) -> bool override;
9
10 [[nodiscard]] auto remove(size_t id) -> bool override;
11
12 [[nodiscard]] auto get(size_t id) -> NotificationDTO override;
13
14 [[nodiscard]] auto update(const NotificationDTO& object) -> bool override;
15
16 [[nodiscard]] auto getAll() -> std::vector<NotificationDTO>;
17};
Definition IRepository.hpp:5
Definition NotificationDTO.hpp:19
Definition NotificationRepository.hpp:6
auto create(const NotificationDTO &object) -> bool override
Definition NotificationRepository.cpp:9
auto get(size_t id) -> NotificationDTO override
Definition NotificationRepository.cpp:51
auto remove(size_t id) -> bool override
Definition NotificationRepository.cpp:23
auto update(const NotificationDTO &object) -> bool override
Definition NotificationRepository.cpp:33
auto getAll() -> std::vector< NotificationDTO >
Definition NotificationRepository.cpp:63