Migrated block, unblock and get user block list methods to Helix (#2370)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "providers/twitch/api/Helix.hpp"
|
||||
#include "util/RapidjsonHelpers.hpp"
|
||||
|
||||
#include <rapidjson/document.h>
|
||||
@@ -23,6 +24,13 @@ struct TwitchUser {
|
||||
this->displayName = other.displayName;
|
||||
}
|
||||
|
||||
void fromHelixBlock(const HelixBlock &ignore)
|
||||
{
|
||||
this->id = ignore.userId;
|
||||
this->name = ignore.userName;
|
||||
this->displayName = ignore.displayName;
|
||||
}
|
||||
|
||||
bool operator<(const TwitchUser &rhs) const
|
||||
{
|
||||
return this->id < rhs.id;
|
||||
|
||||
Reference in New Issue
Block a user