LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerErrorReportRequestHandler.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "LootLockerErrorReportRequestHandler.generated.h"
9
10//==================================================
11// Request Definitions
12//==================================================
13
14USTRUCT(BlueprintType)
16{
17 GENERATED_BODY()
18
19 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
20 FString user_description;
21 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
22 FString client_request_id;
23 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
24 FString server_request_id;
25 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
26 FString trace_id;
27 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
28 int32 status_code = 0;
29 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
30 FString message;
31 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
32 FString endpoint;
33 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
34 FString http_method;
35 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
36 FString response_json_body;
37 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
38 TArray<FString> response_headers;
39 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
40 FString request_body;
41 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
42 TArray<FString> request_headers;
43 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
44 int32 retry_attempts = 0;
45 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
46 float request_duration_seconds = 0.0f;
47 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
48 FString server_timestamp;
49 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
50 FString client_timestamp;
51 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
52 FString player_ulid;
53 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
54 FString sdk_version;
55};
56
57//==================================================
58// Handler
59//==================================================
60
62
63UCLASS()
64class LOOTLOCKERSDK_API ULootLockerErrorReportRequestHandler : public UObject
65{
66 GENERATED_BODY()
67public:
75 static FString ReportSDKError(const FLootLockerPlayerData& PlayerData, const FLootLockerErrorReportRequest& Report, const FLootLockerSendErrorReportDelegate& OnComplete);
76};
void(* FLootLockerSendErrorReportDelegate)(FLootLockerResponse)
Definition LootLockerErrorReportRequestHandler.h:61
Definition LootLockerErrorReportRequestHandler.h:65
static FString ReportSDKError(const FLootLockerPlayerData &PlayerData, const FLootLockerErrorReportRequest &Report, const FLootLockerSendErrorReportDelegate &OnComplete)
Send a report about a failed LootLocker request to the dedicated error-report endpoint.
Definition LootLockerErrorReportRequestHandler.h:16
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19