diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-17 21:05:17 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-17 21:05:17 +0500 |
| commit | b1a2e8a26cd08545ef93192b465b68c81bbc582b (patch) | |
| tree | 72650dedd7beabd298ea9a4fdc7c459d4df976ce /bot/src/api/twitch/schemas/stream.hpp | |
| parent | 83f9787b6e6327e4000cc2df1a98ea5a50a1e284 (diff) | |
feat: get channel information method
Diffstat (limited to 'bot/src/api/twitch/schemas/stream.hpp')
| -rw-r--r-- | bot/src/api/twitch/schemas/stream.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |
