refactor: rename Badge to TwitchBadge (#6706)

this change is made to clarify that the previously-called Badge object
is actually specialized for Twitch badges
This commit is contained in:
pajlada
2026-01-04 12:52:02 +01:00
committed by GitHub
parent 7fed720d18
commit 18e3d7c72b
190 changed files with 1058 additions and 1049 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ const QSet<QString> channelAuthority{"lead_moderator", "moderator", "vip",
"broadcaster"};
const QSet<QString> subBadges{"subscriber", "founder"};
Badge::Badge(QString key, QString value)
TwitchBadge::TwitchBadge(QString key, QString value)
: key_(std::move(key))
, value_(std::move(value))
{
@@ -34,7 +34,7 @@ Badge::Badge(QString key, QString value)
}
}
bool Badge::operator==(const Badge &other) const
bool TwitchBadge::operator==(const TwitchBadge &other) const
{
return this->key_ == other.key_ && this->value_ == other.value_;
}