mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
653 B
C++
28 lines
653 B
C++
#pragma once
|
|
|
|
#include "controllers/userdata/UserDataController.hpp"
|
|
|
|
namespace chatterino::mock {
|
|
|
|
class UserDataController : public IUserDataController
|
|
{
|
|
public:
|
|
UserDataController() = default;
|
|
|
|
// Get extra data about a user
|
|
// If the user does not have any extra data, return none
|
|
std::optional<UserData> getUser(const QString &userID) const override
|
|
{
|
|
return std::nullopt;
|
|
}
|
|
|
|
// Update or insert extra data for the user's color override
|
|
void setUserColor(const QString &userID,
|
|
const QString &colorString) override
|
|
{
|
|
// do nothing
|
|
}
|
|
};
|
|
|
|
} // namespace chatterino::mock
|