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