mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
27 lines
351 B
C++
27 lines
351 B
C++
#include "messages/Link.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
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;
|
|
}
|
|
|
|
bool Link::isUrl() const
|
|
{
|
|
return this->type == Url;
|
|
}
|
|
|
|
} // namespace chatterino
|