mirror-chatterino2/src/singletons/helper/_ModerationAction.cpp

52 lines
1,021 B
C++
Raw Normal View History

2018-01-17 14:14:31 +01:00
#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;
}
2018-01-17 14:14:31 +01:00
} // namespace singletons
} // namespace chatterino