This commit is contained in:
fourtf
2018-06-26 13:24:55 +02:00
parent ec04f10895
commit c9722b9780
301 changed files with 0 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#pragma once
#include <rapidjson/document.h>
#include <QString>
#include <cassert>
namespace chatterino {
namespace providers {
namespace twitch {
struct TwitchUser {
QString id;
mutable QString name;
mutable QString displayName;
void update(const TwitchUser &other) const
{
assert(this->id == other.id);
this->name = other.name;
this->displayName = other.displayName;
}
static TwitchUser fromJSON(const rapidjson::Value &value);
bool operator<(const TwitchUser &rhs) const
{
return this->id < rhs.id;
}
};
} // namespace twitch
} // namespace providers
} // namespace chatterino