#pragma once #include "messages/word.hpp" #include #include #include namespace chatterino { class Channel; namespace messages { class Message; typedef std::shared_ptr SharedMessage; class Message { public: bool getCanHighlightTab() const; void setHighlight(bool value); const QString &getTimeoutUser() const; int getTimeoutCount() const; const QString &getUserName() const; const QString &getDisplayName() const; const QString &getContent() const; const std::chrono::time_point &getParseTime() const; std::vector &getWords(); bool isDisabled() const; const QString &getId() const; const QString text; bool centered = false; private: static LazyLoadedImage *badgeStaff; static LazyLoadedImage *badgeAdmin; static LazyLoadedImage *badgeGlobalmod; static LazyLoadedImage *badgeModerator; static LazyLoadedImage *badgeTurbo; static LazyLoadedImage *badgeBroadcaster; static LazyLoadedImage *badgePremium; static QRegularExpression *cheerRegex; // what is highlightTab? bool highlightTab = false; QString timeoutUser = ""; int timeoutCount = 0; bool disabled = false; std::chrono::time_point parseTime; QString userName = ""; QString displayName = ""; QString content; QString id = ""; std::vector words; }; } // namespace messages } // namespace chatterino