mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
35 lines
465 B
C++
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
|