LootLocker Unreal SDK 10.7.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerCurrencyRequestHandler.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 "LootLockerCurrencyRequestHandler.generated.h"
10
11//==================================================
12// Data Type Definitions
13//==================================================
14
18USTRUCT(BlueprintType, Category = "LootLocker")
20{
21 GENERATED_BODY()
25 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
26 FString Id = "";
30 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
31 FString Name = "";
35 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
36 FString Code = "";
40 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
45 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
46 FString Created_at = "";
50 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
51 FString Published_at = "";
52};
53
57USTRUCT(BlueprintType, Category = "LootLocker")
59{
60 GENERATED_BODY()
64 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
65 FString Id = "";
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
70 FString Currency = "";
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
75 FString Name = "";
79 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
80 int Value = 0;
84 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
85 FString Created_at = "";
86};
87
88//==================================================
89// Request Definitions
90//==================================================
91
92// N/A
93
94//==================================================
95// Response Definitions
96//==================================================
97
101USTRUCT(BlueprintType, Category = "LootLocker")
103{
104 GENERATED_BODY()
108 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
110};
111
115USTRUCT(BlueprintType, Category = "LootLocker")
117{
118 GENERATED_BODY()
122 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
124};
125
129USTRUCT(BlueprintType, Category = "LootLocker")
131{
132 GENERATED_BODY()
136 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
137 FString Id = "";
141 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
142 FString Name = "";
146 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
147 FString Code = "";
151 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
156 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
157 FString Created_at = "";
158};
159
160//==================================================
161// Delegate Definitions
162//==================================================
163
166
178
179
180//==================================================
181// API Class Definition
182//==================================================
183
185UCLASS()
186class LOOTLOCKERSDK_API ULootLockerCurrencyRequestHandler : public UObject
187{
188 GENERATED_BODY()
189public:
191
192 static FString ListCurrencies(const FLootLockerPlayerData& PlayerData, const FLootLockerListCurrenciesResponseDelegate& OnResponseCompleted);
193 static FString GetCurrencyDetails(const FLootLockerPlayerData& PlayerData, const FString& CurrencyCode, const FLootLockerGetCurrencyDetailsResponseDelegate& OnResponseCompleted);
194 static FString GetCurrencyDenominationsByCode(const FLootLockerPlayerData& PlayerData, const FString& CurrencyCode, const FLootLockerListDenominationsResponseDelegate& OnResponseCompleted);
195};
static FString GetCurrencyDenominationsByCode(const FLootLockerPlayerData &PlayerData, const FString &CurrencyCode, const FLootLockerListDenominationsResponseDelegate &OnResponseCompleted)
ULootLockerCurrencyRequestHandler()
Definition LootLockerCurrencyRequestHandler.h:190
static FString ListCurrencies(const FLootLockerPlayerData &PlayerData, const FLootLockerListCurrenciesResponseDelegate &OnResponseCompleted)
static FString GetCurrencyDetails(const FLootLockerPlayerData &PlayerData, const FString &CurrencyCode, const FLootLockerGetCurrencyDetailsResponseDelegate &OnResponseCompleted)
void(* FLootLockerListDenominationsResponseDelegate)(FLootLockerListDenominationsResponse)
C++ response delegate for listing denominations on a currency.
Definition LootLockerCurrencyRequestHandler.h:177
void(* FLootLockerGetCurrencyDetailsResponseDelegate)(FLootLockerGetCurrencyDetailsResponse)
C++ response delegate for getting details for a single currency.
Definition LootLockerCurrencyRequestHandler.h:173
void(* FLootLockerListCurrenciesResponseDelegate)(FLootLockerListCurrenciesResponse)
C++ response delegate for listing currencies.
Definition LootLockerCurrencyRequestHandler.h:169
Details about a particular currency.
Definition LootLockerCurrencyRequestHandler.h:20
FString Name
The name of the currency.
Definition LootLockerCurrencyRequestHandler.h:31
FString Created_at
The time that this currency was created.
Definition LootLockerCurrencyRequestHandler.h:46
FString Published_at
The time that this currency was published.
Definition LootLockerCurrencyRequestHandler.h:51
FString Code
The unique short code of the currency.
Definition LootLockerCurrencyRequestHandler.h:36
FString Id
The unique id of the currency.
Definition LootLockerCurrencyRequestHandler.h:26
bool Game_api_writes_enabled
True if this currency can be awarded to the player from the game api.
Definition LootLockerCurrencyRequestHandler.h:41
Represents a denomination of a currency.
Definition LootLockerCurrencyRequestHandler.h:59
FString Created_at
The time that this denomination was created.
Definition LootLockerCurrencyRequestHandler.h:85
FString Id
The unique id of the denomination.
Definition LootLockerCurrencyRequestHandler.h:65
int Value
The value of this denomination in units of the currency.
Definition LootLockerCurrencyRequestHandler.h:80
FString Name
The name of this denomination.
Definition LootLockerCurrencyRequestHandler.h:75
FString Currency
The id of the currency this is a denomination of.
Definition LootLockerCurrencyRequestHandler.h:70
Response with details about a particular currency.
Definition LootLockerCurrencyRequestHandler.h:131
FString Code
The unique short code of the currency.
Definition LootLockerCurrencyRequestHandler.h:147
FString Id
The unique id of the currency.
Definition LootLockerCurrencyRequestHandler.h:137
FString Created_at
The time that this currency was created.
Definition LootLockerCurrencyRequestHandler.h:157
bool Game_api_writes_enabled
True if this currency can be awarded to the player from the game api.
Definition LootLockerCurrencyRequestHandler.h:152
FString Name
The name of the currency.
Definition LootLockerCurrencyRequestHandler.h:142
Response containing the list of all currencies available in the game.
Definition LootLockerCurrencyRequestHandler.h:103
TArray< FLootLockerCurrency > Currencies
List of available currencies.
Definition LootLockerCurrencyRequestHandler.h:109
Response containing the list of denominations defined for a specific currency.
Definition LootLockerCurrencyRequestHandler.h:117
TArray< FLootLockerDenomination > Denominations
List of available denominations.
Definition LootLockerCurrencyRequestHandler.h:123
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19