MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / onHttpRequestCompleted

Method onHttpRequestCompleted

Source/ProfilePage.cpp:330–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329
330void ProfilePage::onHttpRequestCompleted(ax::network::HttpClient* sender, ax::network::HttpResponse* response)
331{
332 if (auto str = GameToolbox::getResponse(response))
333 {
334 std::string_view strResp {*str};
335
336 GameToolbox::log("RESPONSE: {}", strResp);
337 auto score = GJUserScore::createWithResponse(strResp);
338 loadPageFromUserInfo(score);
339 delete score;
340
341 }
342 else {
343 _loadingcircle->setVisible(false);
344 _errorMsg->setVisible(true);
345 }
346}

Callers

nothing calls this directly

Calls 1

logFunction · 0.85

Tested by

no test coverage detected