diff --git a/LootLockerSDK/Source/LootLockerSDK/Private/GameAPI/LootLockerAuthenticationRequestHandler.cpp b/LootLockerSDK/Source/LootLockerSDK/Private/GameAPI/LootLockerAuthenticationRequestHandler.cpp index f579356a..2981f15f 100644 --- a/LootLockerSDK/Source/LootLockerSDK/Private/GameAPI/LootLockerAuthenticationRequestHandler.cpp +++ b/LootLockerSDK/Source/LootLockerSDK/Private/GameAPI/LootLockerAuthenticationRequestHandler.cpp @@ -384,7 +384,12 @@ void ULootLockerAuthenticationRequestHandler::StartSteamSession(const FString& S LLAPI::CallAPI(HttpClient, FLootLockerSteamSessionRequest{ config->LootLockerGameKey, config->GameVersion, SteamSessionTicket }, ULootLockerGameEndpoints::SteamSessionEndpoint, { }, EmptyQueryParams, OnCompletedRequestBP, OnCompletedRequest, responseHandler); } else { - LLAPI::CallAPI(HttpClient, FLootLockerSteamSessionWithAppIdRequest{ { config->LootLockerGameKey, config->GameVersion, SteamSessionTicket }, SteamAppId }, ULootLockerGameEndpoints::SteamSessionEndpoint, { }, EmptyQueryParams, OnCompletedRequestBP, OnCompletedRequest, responseHandler); + FLootLockerSteamSessionWithAppIdRequest request; + request.steam_app_id = SteamAppId; + request.game_api_key = config->LootLockerGameKey; + request.game_version = config->GameVersion; + request.steam_ticket = SteamSessionTicket; + LLAPI::CallAPI(HttpClient, request, ULootLockerGameEndpoints::SteamSessionEndpoint, { }, EmptyQueryParams, OnCompletedRequestBP, OnCompletedRequest, responseHandler); } } diff --git a/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerManager.cpp b/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerManager.cpp index 7a4c8474..8aee4226 100644 --- a/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerManager.cpp +++ b/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerManager.cpp @@ -1041,7 +1041,7 @@ void ULootLockerManager::ListCurrencies(const FLootLockerListCurrenciesResponseB void ULootLockerManager::GetCurrencyDetails(const FString& CurrencyCode, const FLootLockerGetCurrencyDetailsResponseBP& OnCompletedRequest) { - ULootLockerCurrencyRequestHandler::GetCurrencyDenominationsByCode(CurrencyCode, OnCompletedRequest); + ULootLockerCurrencyRequestHandler::GetCurrencyDetails(CurrencyCode, OnCompletedRequest); } void ULootLockerManager::GetCurrencyDenominationsByCode(const FString& CurrencyCode, const FLootLockerListDenominationsResponseBP& OnCompletedRequest) diff --git a/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerSDKManager.cpp b/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerSDKManager.cpp index 201b676c..a9e31402 100644 --- a/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerSDKManager.cpp +++ b/LootLockerSDK/Source/LootLockerSDK/Private/LootLockerSDKManager.cpp @@ -1093,7 +1093,7 @@ void ULootLockerSDKManager::ListCurrencies(const FLootLockerListCurrenciesRespon void ULootLockerSDKManager::GetCurrencyDetails(const FString& CurrencyCode, const FLootLockerGetCurrencyDetailsResponseDelegate& OnCompletedRequest) { - ULootLockerCurrencyRequestHandler::GetCurrencyDenominationsByCode(CurrencyCode, FLootLockerGetCurrencyDetailsResponseBP(), OnCompletedRequest); + ULootLockerCurrencyRequestHandler::GetCurrencyDetails(CurrencyCode, FLootLockerGetCurrencyDetailsResponseBP(), OnCompletedRequest); } void ULootLockerSDKManager::GetCurrencyDenominationsByCode(const FString& CurrencyCode, const FLootLockerListDenominationsResponseDelegate& OnCompletedRequest) diff --git a/LootLockerSDK/Source/LootLockerSDK/Public/GameAPI/LootLockerCurrencyRequestHandler.h b/LootLockerSDK/Source/LootLockerSDK/Public/GameAPI/LootLockerCurrencyRequestHandler.h index 950ee879..7828844a 100644 --- a/LootLockerSDK/Source/LootLockerSDK/Public/GameAPI/LootLockerCurrencyRequestHandler.h +++ b/LootLockerSDK/Source/LootLockerSDK/Public/GameAPI/LootLockerCurrencyRequestHandler.h @@ -204,7 +204,7 @@ class LOOTLOCKERSDK_API ULootLockerCurrencyRequestHandler : public UObject ULootLockerCurrencyRequestHandler(); static void ListCurrencies(const FLootLockerListCurrenciesResponseBP& OnResponseCompletedBP = FLootLockerListCurrenciesResponseBP(), const FLootLockerListCurrenciesResponseDelegate& OnResponseCompleted = FLootLockerListCurrenciesResponseDelegate()); - static void GetCurrencyDetails(const FString& CurrencyCode, const FLootLockerGetCurrencyDetailsResponseBP& OnResponseCompletedBP = FLootLockerGetCurrencyDetailsResponseBP(), const FLootLockerGetCurrencyDetailsResponse& OnResponseCompleted = FLootLockerGetCurrencyDetailsResponse()); + static void GetCurrencyDetails(const FString& CurrencyCode, const FLootLockerGetCurrencyDetailsResponseBP& OnResponseCompletedBP = FLootLockerGetCurrencyDetailsResponseBP(), const FLootLockerGetCurrencyDetailsResponseDelegate& OnResponseCompleted = FLootLockerGetCurrencyDetailsResponseDelegate()); static void GetCurrencyDenominationsByCode(const FString& CurrencyCode, const FLootLockerListDenominationsResponseBP& OnResponseCompletedBP = FLootLockerListDenominationsResponseBP(), const FLootLockerListDenominationsResponseDelegate& OnResponseCompleted = FLootLockerListDenominationsResponseDelegate()); static ULootLockerHttpClient* HttpClient;