feat(tgbot): add title menu
This commit is contained in:
parent
f045eb22b2
commit
da40d7df49
7 changed files with 244 additions and 11 deletions
|
|
@ -25,6 +25,7 @@ public:
|
|||
|
||||
// Асинхронный метод: получить список тайтлов пользователя
|
||||
pplx::task<std::vector<BotStructs::Title>> fetchUserTitlesAsync(const std::string& userId);
|
||||
pplx::task<BotStructs::Title> fetchTitleAsync(const std::string& userId, int64_t titleId);
|
||||
|
||||
private:
|
||||
std::shared_ptr<org::openapitools::client::api::ApiConfiguration> apiconfiguration;
|
||||
|
|
@ -32,4 +33,7 @@ private:
|
|||
std::shared_ptr<org::openapitools::client::api::DefaultApi> api;
|
||||
|
||||
nyanimed::AuthImpersonationClient authClient;
|
||||
|
||||
static BotStructs::Title mapTitleToBotTitle(
|
||||
const std::shared_ptr<org::openapitools::client::model::Title>& titleModel);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue