droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
MemberRepository.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IRepository.hpp"
4#include "MemberDTO.hpp"
5
6class MemberRepository : public IRepository<MemberDTO> {
7 public:
8 [[nodiscard]] bool create(const MemberDTO& object) override;
9
10 [[nodiscard]] bool remove(size_t id) override;
11
12 [[nodiscard]] MemberDTO get(size_t id) override;
13
14 [[nodiscard]] bool update(const MemberDTO& object) override;
15};
Definition IRepository.hpp:5
Definition MemberDTO.hpp:14
Definition MemberRepository.hpp:6
bool update(const MemberDTO &object) override
Definition MemberRepository.cpp:30
bool create(const MemberDTO &object) override
Definition MemberRepository.cpp:7
MemberDTO get(size_t id) override
Definition MemberRepository.cpp:48
bool remove(size_t id) override
Definition MemberRepository.cpp:20