mirror-chatterino2/src/messages/link.cpp
2017-09-21 12:15:01 +02:00

35 lines
465 B
C++

#include "messages/link.hpp"
namespace chatterino {
namespace messages {
Link::Link()
: type(None)
, value(QString())
{
}
Link::Link(Type _type, const QString &_value)
: type(_type)
, value(_value)
{
}
bool Link::isValid() const
{
return this->type != None;
}
Link::Type Link::getType() const
{
return this->type;
}
const QString &Link::getValue() const
{
return this->value;
}
} // namespace messages
} // namespace chatterino