mirror-chatterino2/src/messages/link.cpp

35 lines
465 B
C++
Raw Normal View History

2017-06-11 09:31:45 +02:00
#include "messages/link.hpp"
2017-01-18 21:30:23 +01:00
2017-04-14 17:52:22 +02:00
namespace chatterino {
namespace messages {
2017-01-05 16:07:20 +01:00
Link::Link()
2017-01-18 04:33:30 +01:00
: type(None)
, value(QString())
2017-01-05 20:49:33 +01:00
{
}
2017-09-21 12:15:01 +02:00
Link::Link(Type _type, const QString &_value)
: type(_type)
, value(_value)
2017-01-05 16:07:20 +01:00
{
}
2017-09-21 12:15:01 +02:00
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