LootLocker Unreal SDK 11.1.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerReferralRequestHandler.h
Go to the documentation of this file.
1// Copyright LootLocker AB
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "LootLockerReferralRequestHandler.generated.h"
9
10//==================================================
11// Enum Definitions
12//==================================================
13
16
19UENUM(BlueprintType, Category = "LootLocker")
27
28
31
34UENUM(BlueprintType, Category = "LootLocker")
35enum class ELootLockerReferralStatus : uint8
36{
39 Void = 2,
40};
41
42
43//==================================================
44// Data Definitions
45//==================================================
46
51USTRUCT(BlueprintType, Category = "LootLocker")
53{
54 GENERATED_BODY()
55
56
57 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
58 FString program_key = "";
59
61 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
62 FString name = "";
63
65 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
67
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
70 int32 referral_count = 0;
71
73 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
74 int32 referrer_cap = 0;
75
77 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
78 bool HasReferrerCap = false;
79};
80
85USTRUCT(BlueprintType, Category = "LootLocker")
87{
88 GENERATED_BODY()
89
90
91 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
92 FString id = "";
93
95 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
96 FString program_key = "";
97
99 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
100 FString program_name = "";
101
103 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
104 FString referee_public_uid = "";
105
107 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
109
111 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
112 FDateTime claimed_at = FDateTime(0);
113
115 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
116 FDateTime qualified_at = FDateTime(0);
117
119 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
120 bool HasQualifiedAt = false;
121
123 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
125};
126
127//==================================================
128// Response Definitions
129//==================================================
130
135USTRUCT(BlueprintType, Category = "LootLocker")
137{
138 GENERATED_BODY()
139
140
141 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
142 FString code = "";
143
145 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
147
153};
154
159USTRUCT(BlueprintType, Category = "LootLocker")
161{
162 GENERATED_BODY()
163
164
165 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
167
169 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
171
177};
178
179//==================================================
180// C++ Delegate Definitions
181//==================================================
182
185
187
191
192//==================================================
193// API Class Definition
194//==================================================
195
196UCLASS()
197class LOOTLOCKERSDK_API ULLReferralRequestHandler : public UObject
198{
199 GENERATED_BODY()
200public:
202
203 static FString GetInvite(const FLootLockerPlayerData& PlayerData, const FLootLockerReferralInviteResponseDelegate& OnCompletedRequest);
204 static FString ListMyReferrals(const FLootLockerPlayerData& PlayerData, int32 Page, int32 PerPage, const FLootLockerReferralListResponseDelegate& OnCompletedRequest);
205};
ULLReferralRequestHandler()
Definition LootLockerReferralRequestHandler.h:201
static FString ListMyReferrals(const FLootLockerPlayerData &PlayerData, int32 Page, int32 PerPage, const FLootLockerReferralListResponseDelegate &OnCompletedRequest)
static FString GetInvite(const FLootLockerPlayerData &PlayerData, const FLootLockerReferralInviteResponseDelegate &OnCompletedRequest)
void(* FLootLockerReferralInviteResponseDelegate)(FLootLockerReferralInviteResponse)
C++ response callback delegate; receives an FLootLockerReferralInviteResponse result.
Definition LootLockerReferralRequestHandler.h:186
void(* FLootLockerReferralListResponseDelegate)(FLootLockerReferralListResponse)
C++ response callback delegate; receives an FLootLockerReferralListResponse result.
Definition LootLockerReferralRequestHandler.h:189
ELootLockerReferralStatus
The state of a referral relation.
Definition LootLockerReferralRequestHandler.h:36
ELootLockerReferralQualifier
The action that turns a claimed referral into a payout.
Definition LootLockerReferralRequestHandler.h:21
@ qualified
Definition LootLockerReferralRequestHandler.h:38
@ Void
Definition LootLockerReferralRequestHandler.h:39
@ claimed
Definition LootLockerReferralRequestHandler.h:37
@ entitlement_owned
Definition LootLockerReferralRequestHandler.h:23
@ session_started
Definition LootLockerReferralRequestHandler.h:22
@ game_asserted
Definition LootLockerReferralRequestHandler.h:24
@ publisher_currency_earned
Definition LootLockerReferralRequestHandler.h:25
Definition LootLockerResponse.h:101
Definition LootLockerPlayerData.h:12
Response containing the calling player's referral code and their rewarded-referral count against each...
Definition LootLockerReferralRequestHandler.h:137
TArray< FLootLockerReferralProgram > programs
The game's active referral programs, each with the player's progress against its cap.
Definition LootLockerReferralRequestHandler.h:146
FString code
The player's referral code, which is their public UID.
Definition LootLockerReferralRequestHandler.h:142
void PopulateConvenienceStructures()
Populate the convenience structures that FJsonObjectConverter cannot derive on its own,...
Response containing one page of the calling player's own referrals, newest first, including ones stil...
Definition LootLockerReferralRequestHandler.h:161
TArray< FLootLockerReferral > referrals
The player's referrals, newest first.
Definition LootLockerReferralRequestHandler.h:166
FLootLockerExtendedIndexBasedPagination pagination
Pagination information for the referrals.
Definition LootLockerReferralRequestHandler.h:170
void PopulateConvenienceStructures()
Populate the convenience structures that FJsonObjectConverter cannot derive on its own,...
One referral program as it applies to the inviting player: the program's identity,...
Definition LootLockerReferralRequestHandler.h:53
bool HasReferrerCap
True when the program has a referrer cap, in which case Referrer_cap holds it.
Definition LootLockerReferralRequestHandler.h:78
FString program_key
The game-unique machine key of the program.
Definition LootLockerReferralRequestHandler.h:58
FString name
The human-friendly display name of the program.
Definition LootLockerReferralRequestHandler.h:62
int32 referrer_cap
The maximum number of rewarded referrals this player may make under this program.
Definition LootLockerReferralRequestHandler.h:74
int32 referral_count
How many rewarded referrals the player has made under this program.
Definition LootLockerReferralRequestHandler.h:70
ELootLockerReferralQualifier qualifier
The action that turns a claimed referral into a payout.
Definition LootLockerReferralRequestHandler.h:66
One referral relation as the referring player sees it: the program it was made under,...
Definition LootLockerReferralRequestHandler.h:87
FString program_name
The human-friendly display name of the program.
Definition LootLockerReferralRequestHandler.h:100
bool HasQualifiedAt
True when the referral has qualified and Qualified_at holds the time.
Definition LootLockerReferralRequestHandler.h:120
FString program_key
The game-unique machine key of the program the referral was made under.
Definition LootLockerReferralRequestHandler.h:96
ELootLockerReferralStatus status
The state of the referral.
Definition LootLockerReferralRequestHandler.h:108
FString referee_public_uid
The referred player's public UID.
Definition LootLockerReferralRequestHandler.h:104
FDateTime claimed_at
When the referral was claimed.
Definition LootLockerReferralRequestHandler.h:112
FDateTime qualified_at
When the referral qualified.
Definition LootLockerReferralRequestHandler.h:116
bool HasRefereePublicUid
True when the referee's game-player row still exists, in which case Referee_public_uid holds their UI...
Definition LootLockerReferralRequestHandler.h:124
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19