droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ReactionRoleRepository.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <IRepository.hpp>
4
5#include "ReactionRoleDTO.hpp"
6
7class ReactionRoleRepository : public IRepository<ReactionRoleDTO> {
8 public:
9 [[nodiscard]] bool create(const ReactionRoleDTO& object) override;
10
11 [[nodiscard]] bool remove(size_t message_id) override;
12
13 [[nodiscard]] ReactionRoleDTO get(size_t message_id) override;
14
15 [[nodiscard]] ReactionRoleDTO get(size_t message_id, const std::string& emoji);
16
17 [[nodiscard]] bool update(const ReactionRoleDTO& object) override;
18};
Definition IRepository.hpp:5
Definition ReactionRoleDTO.hpp:6
Definition ReactionRoleRepository.hpp:7
bool update(const ReactionRoleDTO &object) override
Definition ReactionRoleRepository.cpp:35
ReactionRoleDTO get(size_t message_id) override
Definition ReactionRoleRepository.cpp:50
bool remove(size_t message_id) override
Definition ReactionRoleRepository.cpp:25
bool create(const ReactionRoleDTO &object) override
Definition ReactionRoleRepository.cpp:9