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")
31const FString& GetAccessToken()
const;
34FOnOrderCheckSuccess OnSuccess;
36FOnOrderCheckError OnError;
42int32 ShortPollingLifeTime;
44FTimerHandle ShortPollingTimerHandle;
46bool bShortPollingExpired =
false;
48void OnConnectionError();
50void OnOrderStatusUpdated(
const FOrderStatusData Data);
54void OnShortPollingExpired();
56void StartCentrifugoTracking();
58void StopCentrifugoTracking();
60void ActivateShortPolling();
62void ShortPollingCheckOrder();
64void CheckOrder_HttpRequestComplete(FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse,
65const bool bSucceeded, FOnOrderCheck SuccessCallback, FOnOrderCheckError ErrorCallback);
Definition: XsollaOrderCheckObject.h:21
Definition: XsollaStoreDataModel.h:41