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