droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ChallengeRoleRepository.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
16#include "ChallengeRoleDTO.hpp"
17
18//-----------------------------------------------------
19//
20//-----------------------------------------------------
21class ChallengeRoleRepository : public IRepository<ChallengeRoleDTO> {
22 public:
23 [[nodiscard]] bool create(const ChallengeRoleDTO& object) noexcept override;
24
25 [[nodiscard]] bool remove(size_t messageId) noexcept override;
26
27 [[nodiscard]] ChallengeRoleDTO get(size_t messageId) noexcept override;
28
29 [[nodiscard]] bool update(const ChallengeRoleDTO& object) noexcept override;
30};
Definition ChallengeRoleDTO.hpp:20
Definition ChallengeRoleRepository.hpp:21
bool update(const ChallengeRoleDTO &object) noexcept override
Definition ChallengeRoleRepository.cpp:54
ChallengeRoleDTO get(size_t messageId) noexcept override
Definition ChallengeRoleRepository.cpp:73
bool remove(size_t messageId) noexcept override
Definition ChallengeRoleRepository.cpp:42
bool create(const ChallengeRoleDTO &object) noexcept override
Definition ChallengeRoleRepository.cpp:23
Definition IRepository.hpp:19