LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerMiscellaneousRequestHandler.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5
6#include "CoreMinimal.h"
7#include "UObject/NoExportTypes.h"
10#include "JsonObjectConverter.h"
11#include "LootLockerMiscellaneousRequestHandler.generated.h"
12
13//==================================================
14// Data Definitions
15//==================================================
16
19USTRUCT(BlueprintType)
21{
22 GENERATED_BODY()
24 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
25 FString Title_id = "";
27 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
28 FString Environment_id = "";
30 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
31 int32 Game_id = 0;
33 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
34 FString Name = "";
35};
36
37//==================================================
38// Request Definitions
39//==================================================
42USTRUCT(BlueprintType)
44{
45 GENERATED_BODY()
46 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
47 FString api_key = "";
48};
49
50//==================================================
51// Response Definitions
52//==================================================
55USTRUCT(BlueprintType)
57{
58 GENERATED_BODY()
59 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
60 FString date = "";
61};
62
65USTRUCT(BlueprintType)
67{
68 GENERATED_BODY()
70 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
72};
73
74//==================================================
75// Delegate Definitions
76//==================================================
79
87
88//==================================================
89// API Class Definition
90//==================================================
92UCLASS()
93class LOOTLOCKERSDK_API ULootLockerMiscellaneousRequestHandler : public UObject
94{
95 GENERATED_BODY()
96public:
98
99 static FString GetServerTime(const FLootLockerPlayerData& PlayerData, const FTimeResponseDelegate& OnCompletedRequest);
100 static FString GetLastActivePlatform(const FLootLockerPlayerData& PlayerData);
101 static FString GetGameInfo(const FGameInfoResponseDelegate& OnCompletedRequest);
102};
Definition LootLockerMiscellaneousRequestHandler.h:94
static FString GetLastActivePlatform(const FLootLockerPlayerData &PlayerData)
ULootLockerMiscellaneousRequestHandler()
Definition LootLockerMiscellaneousRequestHandler.h:97
static FString GetServerTime(const FLootLockerPlayerData &PlayerData, const FTimeResponseDelegate &OnCompletedRequest)
static FString GetGameInfo(const FGameInfoResponseDelegate &OnCompletedRequest)
void(* FTimeResponseDelegate)(FLootLockerTimeResponse)
C++ response delegate for fetching server time.
Definition LootLockerMiscellaneousRequestHandler.h:82
void(* FGameInfoResponseDelegate)(FLootLockerGameInfoResponse)
C++ response delegate for fetching game info.
Definition LootLockerMiscellaneousRequestHandler.h:86
Definition LootLockerMiscellaneousRequestHandler.h:44
Definition LootLockerMiscellaneousRequestHandler.h:67
Definition LootLockerMiscellaneousRequestHandler.h:21
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
Definition LootLockerMiscellaneousRequestHandler.h:57