LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerFeedbackRequestHandler.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5
6#include "CoreMinimal.h"
9#include "LootLockerFeedbackRequestHandler.generated.h"
10
11//==================================================
12// Data Type Definitions
13//==================================================
14
17UENUM(BlueprintType, Category = "LootLocker")
21enum class ELootLockerFeedbackType : uint8
22{
23 Player = 0,
24 Game = 1,
25 Ugc = 2,
26};
28
29USTRUCT(BlueprintType, Category = "LootLocker")
31{
32 GENERATED_BODY()
36 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
37 FString id = "";
41 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
46 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
47 FString name = "";
51 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
52 FString description = "";
53};
54
55//==================================================
56// Response Definitions
57//==================================================
58
59USTRUCT(BlueprintType, Category = "LootLocker")
61{
62 GENERATED_BODY()
66 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
67 TArray<FLootLockerFeedbackCategory> categories;
68};
69
70//==================================================
71// Request Definitions
72//==================================================
73
74USTRUCT(BlueprintType)
76{
77 GENERATED_BODY()
81 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
82 FString entity = "";
83
87 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
88 FString entity_id = "";
89
93 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
94 FString category_id = "";
95
99 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
100 FString description = "";
101
102
103};
104
105//==================================================
106// Delegate Definitions
107//==================================================
108
111
115
116//==================================================
117// API Class Definition
118//==================================================
119
121UCLASS()
122class LOOTLOCKERSDK_API ULootLockerFeedbackRequestHandler : public UObject
123{
124 GENERATED_BODY()
125public:
127
128 static FString ListFeedbackCategories(const FLootLockerPlayerData& PlayerData, const ELootLockerFeedbackType& Type, const FLootLockerListFeedbackCategoryResponseDelegate& OnCompletedRequest);
129 static FString SendFeedback(const FLootLockerPlayerData& PlayerData, const FString& Ulid, const FString& Description, const FString& CategoryID, const ELootLockerFeedbackType& Type, const FLootLockerSendFeedbackResponseDelegate& OnCompletedRequest);
130};
Definition LootLockerFeedbackRequestHandler.h:123
static FString ListFeedbackCategories(const FLootLockerPlayerData &PlayerData, const ELootLockerFeedbackType &Type, const FLootLockerListFeedbackCategoryResponseDelegate &OnCompletedRequest)
static FString SendFeedback(const FLootLockerPlayerData &PlayerData, const FString &Ulid, const FString &Description, const FString &CategoryID, const ELootLockerFeedbackType &Type, const FLootLockerSendFeedbackResponseDelegate &OnCompletedRequest)
ULootLockerFeedbackRequestHandler()
Definition LootLockerFeedbackRequestHandler.h:126
ELootLockerFeedbackType
An enum with the supported Feedback types that are available for Feedback.
Definition LootLockerFeedbackRequestHandler.h:22
void(* FLootLockerListFeedbackCategoryResponseDelegate)(FLootLockerFeedbackCategoryResponse)
C++ response callback delegate; receives an FLootLockerFeedbackCategoryResponse result.
Definition LootLockerFeedbackRequestHandler.h:112
void(* FLootLockerSendFeedbackResponseDelegate)(FLootLockerResponse)
C++ response callback delegate; receives an FLootLockerResponse result.
Definition LootLockerFeedbackRequestHandler.h:114
Definition LootLockerFeedbackRequestHandler.h:61
Definition LootLockerFeedbackRequestHandler.h:31
Definition LootLockerFeedbackRequestHandler.h:76
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19