LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerEntitlementRequestHandler.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 "LootLockerEntitlementRequestHandler.generated.h"
10
11//==================================================
12// Data Type Definitions
13//==================================================
14
17UENUM(BlueprintType, Category = "LootLocker")
22{
23 None = 0,
26 Steam_store = 3,
29 Lootlocker = 6
30};
32
35UENUM(BlueprintType, Category = "LootLocker")
40{
41 None = 0,
42 Active = 1,
43 Pending = 2,
44 Expired = 3,
45 Canceled = 4,
46 Refunded = 5
47};
49
52UENUM(BlueprintType, Category = "LootLocker")
64
67UENUM(BlueprintType, Category = "LootLocker")
72{
73 Asset = 0,
74 Currency = 1,
77 Group = 4,
78};
80
84USTRUCT(BlueprintType, Category = "LootLocker")
86{
87 GENERATED_BODY()
91 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
92 FString Created_at = "";
93
97 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
99
103 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
104 FString Id = "";
105
109 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
110 FString Reward_id = "";
111
115 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
116 FString Catalog_id = "";
117
121 bool Purchasable = false;
122};
123
127USTRUCT(BlueprintType, Category = "LootLocker")
129{
130 GENERATED_BODY()
134 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
135 FString Key = "";
136
140 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
141 FString Value = "";
142};
143
147USTRUCT(BlueprintType, Category = "LootLocker")
149{
150 GENERATED_BODY()
154 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
155 FString Created_at = "";
156
160 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
161 FString Entitlement_id = "";
162
166 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
167 FString Id = "";
168};
169
173USTRUCT(BlueprintType, Category = "LootLocker")
175{
176 GENERATED_BODY()
180 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
181 FString Created_at = "";
182
186 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
187 FString Id = "";
188
192 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
194
198 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
200
205 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
207
211 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
213
217 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
219
223 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
225};
226
227//==================================================
228// Response Definitions
229//==================================================
233USTRUCT(BlueprintType, Category = "LootLocker")
235{
236 GENERATED_BODY()
240 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
242
246 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
248};
249
250USTRUCT(BlueprintType, Category = "LootLocker")
252{
253 GENERATED_BODY()
257 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
258 FString created_at = "";
262 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
264
268 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
270
274 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
279 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
284 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
286};
287
288//==================================================
289// Delegate Definitions
290//==================================================
293
299
300//==================================================
301// API Class Definition
302//==================================================
303
305UCLASS()
306class LOOTLOCKERSDK_API ULootLockerEntitlementRequestHandler : public UObject
307{
308 GENERATED_BODY()
309public:
311
312 static FString ListEntitlements(const FLootLockerPlayerData& PlayerData, int Count, const FString& After, const FLootLockerListEntitlementsResponseDelegate& OnComplete);
313 static FString GetEntitlement(const FLootLockerPlayerData& PlayerData, FString EntitlementID, const FLootLockerSingleEntitlementResponseDelegate& OnComplete);
314};
Definition LootLockerEntitlementRequestHandler.h:307
static FString GetEntitlement(const FLootLockerPlayerData &PlayerData, FString EntitlementID, const FLootLockerSingleEntitlementResponseDelegate &OnComplete)
static FString ListEntitlements(const FLootLockerPlayerData &PlayerData, int Count, const FString &After, const FLootLockerListEntitlementsResponseDelegate &OnComplete)
ULootLockerEntitlementRequestHandler()
Definition LootLockerEntitlementRequestHandler.h:310
ELootLockerEntitlementHistoryListingStatus
Status of the entitlement.
Definition LootLockerEntitlementRequestHandler.h:40
void(* FLootLockerSingleEntitlementResponseDelegate)(FLootLockerSingleEntitlementResponse)
C++ response callback delegate; receives an FLootLockerSingleEntitlementResponse result.
Definition LootLockerEntitlementRequestHandler.h:298
void(* FLootLockerListEntitlementsResponseDelegate)(FLootLockerEntitlementHistoryResponse)
C++ response delegate for listing entitlement history.
Definition LootLockerEntitlementRequestHandler.h:296
ELootLockerEntitlementHistoryListingType
Status of the entitlement.
Definition LootLockerEntitlementRequestHandler.h:57
ELootLockerEntitlementHistoryListingStore
An enum with the supported stores that can generate entitlements.
Definition LootLockerEntitlementRequestHandler.h:22
ELootLockerEntitlementRewardEntityKind
Possible entity kinds that rewards entries can have.
Definition LootLockerEntitlementRequestHandler.h:72
Represents a single catalog-related item within an entitlement, including its reward kind,...
Definition LootLockerEntitlementRequestHandler.h:86
Holds a single key-value metadata pair associated with an entitlement listing.
Definition LootLockerEntitlementRequestHandler.h:129
Response containing a paginated list of entitlement history entries for the player.
Definition LootLockerEntitlementRequestHandler.h:235
Represents a non-catalog reward (such as a leaderboard or progression reward) attached to an entitlem...
Definition LootLockerEntitlementRequestHandler.h:149
Represents a complete entitlement record, grouping its catalog items, system rewards,...
Definition LootLockerEntitlementRequestHandler.h:175
Definition LootLockerResponse.h:43
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
Definition LootLockerEntitlementRequestHandler.h:252