mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
51 lines
1,019 B
C++
51 lines
1,019 B
C++
|
#include "moderationaction.hpp"
|
||
|
|
||
|
#include "singletons/resourcemanager.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace singletons {
|
||
|
|
||
|
ModerationAction::ModerationAction(messages::Image *_image, const QString &_action)
|
||
|
: _isImage(true)
|
||
|
, image(_image)
|
||
|
, action(_action)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
ModerationAction::ModerationAction(const QString &_line1, const QString &_line2,
|
||
|
const QString &_action)
|
||
|
: _isImage(false)
|
||
|
, image(nullptr)
|
||
|
, line1(_line1)
|
||
|
, line2(_line2)
|
||
|
, action(_action)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
bool ModerationAction::isImage() const
|
||
|
{
|
||
|
return this->_isImage;
|
||
|
}
|
||
|
|
||
|
messages::Image *ModerationAction::getImage() const
|
||
|
{
|
||
|
return this->image;
|
||
|
}
|
||
|
|
||
|
const QString &ModerationAction::getLine1() const
|
||
|
{
|
||
|
return this->line1;
|
||
|
}
|
||
|
|
||
|
const QString &ModerationAction::getLine2() const
|
||
|
{
|
||
|
return this->line2;
|
||
|
}
|
||
|
|
||
|
const QString &ModerationAction::getAction() const
|
||
|
{
|
||
|
return this->action;
|
||
|
}
|
||
|
} // namespace singletons
|
||
|
} // namespace chatterino
|