LootLocker Unreal SDK 10.7.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")
21 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
23 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
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")
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")
47 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
49 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
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
TArray< FString > request_headers
Definition LootLockerErrorReportRequestHandler.h:42
int32 retry_attempts
Definition LootLockerErrorReportRequestHandler.h:44
FString http_method
Definition LootLockerErrorReportRequestHandler.h:34
FString client_request_id
Definition LootLockerErrorReportRequestHandler.h:22
FString message
Definition LootLockerErrorReportRequestHandler.h:30
FString response_json_body
Definition LootLockerErrorReportRequestHandler.h:36
FString trace_id
Definition LootLockerErrorReportRequestHandler.h:26
FString user_description
Definition LootLockerErrorReportRequestHandler.h:20
TArray< FString > response_headers
Definition LootLockerErrorReportRequestHandler.h:38
FString sdk_version
Definition LootLockerErrorReportRequestHandler.h:54
FString endpoint
Definition LootLockerErrorReportRequestHandler.h:32
float request_duration_seconds
Definition LootLockerErrorReportRequestHandler.h:46
int32 status_code
Definition LootLockerErrorReportRequestHandler.h:28
FString client_timestamp
Definition LootLockerErrorReportRequestHandler.h:50
FString player_ulid
Definition LootLockerErrorReportRequestHandler.h:52
FString server_request_id
Definition LootLockerErrorReportRequestHandler.h:24
FString request_body
Definition LootLockerErrorReportRequestHandler.h:40
FString server_timestamp
Definition LootLockerErrorReportRequestHandler.h:48
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19