#pragma once #include "CppRestOpenAPIClient/ApiClient.h" #include "CppRestOpenAPIClient/ApiConfiguration.h" #include "CppRestOpenAPIClient/api/DefaultApi.h" #include "CppRestOpenAPIClient/model/User.h" #include "CppRestOpenAPIClient/model/GetUserTitles_200_response.h" #include "CppRestOpenAPIClient/model/UserTitle.h" #include "CppRestOpenAPIClient/model/Title.h" #include "constants.hpp" #include "structs.hpp" #include #include #include #include #include #include using namespace org::openapitools::client::api; class BotToServer { public: BotToServer(); // Асинхронный метод: получить список тайтлов пользователя pplx::task> fetchUserTitlesAsync(const std::string& userId); private: std::shared_ptr apiconfiguration; std::shared_ptr apiclient; std::shared_ptr api; };