5#include "CoreMinimal.h"
6#include "XsollaStoreDataModel.h"
7#include "Engine/EngineTypes.h"
8#include "Engine/World.h"
9#include "TimerManager.h"
10#include "XsollaUtilsHttpRequestHelper.h"
11#include "XsollaOrderCheckObject.generated.h"
13struct FOrderStatusData;
15DECLARE_DELEGATE_OneParam(FOnOrderCheckSuccess, int32);
16DECLARE_DELEGATE_ThreeParams(FOnOrderCheckError, int32, int32,
const FString&);
25void Init(
const FString& InAccessToken,
const int32 InOrderId,
bool bShouldStartWithCentrifugo,
26const FOnOrderCheckSuccess& InOnSuccess,
const FOnOrderCheckError& InOnError, int32 InShortPollingLifeTime = 600);
28UFUNCTION(BlueprintCallable, Category =
"Xsolla|Store|OrderCheck")
32FOnOrderCheckSuccess OnSuccess;
34FOnOrderCheckError OnError;
40int32 ShortPollingLifeTime;
42FTimerHandle ShortPollingTimerHandle;
44bool bShortPollingExpired =
false;
46void OnConnectionError();
48void OnOrderStatusUpdated(
const FOrderStatusData Data);
52void OnShortPollingExpired();
54void StartCentrifugoTracking();
56void StopCentrifugoTracking();
58void ActivateShortPolling();
60void ShortPollingCheckOrder();
62void CheckOrder_HttpRequestComplete(FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse,
63const bool bSucceeded, FOnOrderCheck SuccessCallback, FOnOrderCheckError ErrorCallback);
Definition: XsollaOrderCheckObject.h:21
Definition: XsollaStoreDataModel.h:41