| 358 | } |
| 359 | |
| 360 | std::string ServiceConfig::GetAudioListUrl( |
| 361 | int page, int pageSize, std::string_view searchTerm) const |
| 362 | { |
| 363 | if (searchTerm.empty()) |
| 364 | return Substitute( |
| 365 | "{api_url}/my/audio?page={page}&per-page={page_size}", |
| 366 | { { "api_url", mApiEndpoint }, |
| 367 | { "page", std::to_string(page) }, |
| 368 | { "page_size", std::to_string(pageSize) }, }); |
| 369 | |
| 370 | return Substitute( |
| 371 | "{api_url}/my/audio?page={page}&per-page={page_size}&q={search_term}", |
| 372 | { { "api_url", mApiEndpoint }, |
| 373 | { "page", std::to_string(page) }, |
| 374 | { "page_size", std::to_string(pageSize) }, |
| 375 | { "search_term", searchTerm }, }); |
| 376 | } |
| 377 | std::string ServiceConfig::GetAudioInfoUrl(std::string_view audioId) const |
| 378 | { |
| 379 | static constexpr auto kAudioFields = |
no test coverage detected