From b1a2e8a26cd08545ef93192b465b68c81bbc582b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 17 Apr 2025 21:05:17 +0500 Subject: feat: get channel information method --- bot/src/api/twitch/schemas/stream.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bot/src/api/twitch/schemas/stream.hpp') diff --git a/bot/src/api/twitch/schemas/stream.hpp b/bot/src/api/twitch/schemas/stream.hpp index e3d485e..69f4642 100644 --- a/bot/src/api/twitch/schemas/stream.hpp +++ b/bot/src/api/twitch/schemas/stream.hpp @@ -17,6 +17,13 @@ namespace bot::api::twitch::schemas { started_at(utils::chrono::string_to_time_point( started_at, "%Y-%m-%dT%H:%M:%SZ")) {} + Stream(int user_id, std::string user_login, std::string game_name, + std::string title) + : user_id(user_id), + user_login(user_login), + game_name(game_name), + title(title) {} + Stream(int user_id) : user_id(user_id) {} const int &get_user_id() const { return this->user_id; } -- cgit v1.2.3