LootLocker Unreal SDK 10.6.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerPlayerFilesRequestHandler.h
Go to the documentation of this file.
1// Copyright LootLocker AB
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Dom/JsonValue.h"
9#include "LootLockerPlayerFilesRequestHandler.generated.h"
10
11USTRUCT(BlueprintType)
13{
14 GENERATED_BODY()
16 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
17 FString file = "";
18 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
19 FString purpose = "";
20 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
21 FString key = "";
22 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
23 bool IsPublic = false;
24};
25
26USTRUCT(BlueprintType)
28{
29 GENERATED_BODY()
31 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
32 FString file = "";
33};
34
35USTRUCT(BlueprintType)
37{
38 GENERATED_BODY()
39 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
40 FString message = "";
41 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
42 int32 id = 0;
43 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
44 FString revision_id = "";
45 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
46 FString name = "";
47 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
48 FString key = "";
49 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
50 int32 size = 0;
51 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
52 FString purpose = "";
53 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
54 FString url = "";
55 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
56 FString url_expires_at = "";
57 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
58 FString created_at = "";
59 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
60 bool IsPublic = false;
61};
62
63USTRUCT(BlueprintType)
65{
66 GENERATED_BODY()
67 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
68 int32 id = 0;
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
70 FString revision_id = "";
71 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
72 FString name = "";
73 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
74 FString key = "";
75 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
76 int32 size = 0;
77 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
78 FString purpose = "";
79 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
80 FString url = "";
81 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
82 FString url_expires_at = "";
83 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
84 FString created_at = "";
85 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
86 bool IsPublic = false;
87};
88
89USTRUCT(BlueprintType)
91{
92 GENERATED_BODY()
93 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
94 TArray<FLootLockerPlayerFile> items;
95};
96
97USTRUCT(BlueprintType)
99{
100 GENERATED_BODY()
101 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
102 FString created_at = "";
103 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
104 FString name = "";
105 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
106 FString key = "";
107 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
108 FString purpose = "";
109 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
110 int32 id = 0;
111 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
112 bool IsPublic = false;
113};
114
115USTRUCT(BlueprintType)
117{
118 GENERATED_BODY()
119 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
120 FString id = "";
121 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
122 FString url = "";
123 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
124 int32 size = 0;
125 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
126 FString created_at = "";
127};
128
129USTRUCT(BlueprintType)
131{
132 GENERATED_BODY()
133 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
135 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
137 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
138 FString current_revision_id = "";
139};
140
143
145
148
151
154
157
159UCLASS()
160class LOOTLOCKERSDK_API ULLPlayerFilesRequestHandler : public UObject
161{
162 GENERATED_BODY()
163public:
165
166 static FString UploadFile(const FLootLockerPlayerData& PlayerData, const FLootLockerFileUploadRequest& Request, const FLootLockerUploadFileDelegate& OnComplete);
167 static FString UpdateFile(const FLootLockerPlayerData& PlayerData, const int32 FileId, const FLootLockerFileUpdateRequest& Request, const FLootLockerUploadFileDelegate& OnComplete);
168 static FString ListFiles(const FLootLockerPlayerData& PlayerData, const FLootLockerFileListDelegate& OnComplete);
169 static FString ListOtherPlayersPublicFiles(const FLootLockerPlayerData& PlayerData, const int32 PlayerID, const FLootLockerFileListDelegate& OnComplete);
170 static FString GetSingleFile(const FLootLockerPlayerData& PlayerData, const int32 FileID, const FLootLockerUploadFileDelegate& OnComplete);
171 static FString DeletePlayerFile(const FLootLockerPlayerData& PlayerData, const int32 FileID, const FLootLockerFileDeletedDelegate& OnComplete);
172 static FString ListFileRevisions(const FLootLockerPlayerData& PlayerData, const int32 FileID, const FLootLockerFileRevisionsDelegate& OnComplete);
173 static FString GetFileRevision(const FLootLockerPlayerData& PlayerData, const int32 FileID, const FString& RevisionID, const FLootLockerFileContentDelegate& OnComplete);
174 static FString PromoteFileRevision(const FLootLockerPlayerData& PlayerData, const int32 FileID, const FString& RevisionID, const FLootLockerDefaultDelegate& OnComplete);
175 static FString GetFileByKey(const FLootLockerPlayerData& PlayerData, const FString& Key, const FLootLockerUploadFileDelegate& OnComplete);
176 static FString ListFileRevisionsByKey(const FLootLockerPlayerData& PlayerData, const FString& Key, const FLootLockerFileRevisionsDelegate& OnComplete);
177 static FString GetFileRevisionByKey(const FLootLockerPlayerData& PlayerData, const FString& Key, const FString& RevisionID, const FLootLockerFileContentDelegate& OnComplete);
178 static FString PromoteFileRevisionByKey(const FLootLockerPlayerData& PlayerData, const FString& Key, const FString& RevisionID, const FLootLockerDefaultDelegate& OnComplete);
179 static FString DeletePlayerFileByKey(const FLootLockerPlayerData& PlayerData, const FString& Key, const FLootLockerFileDeletedDelegate& OnComplete);
180private:
181 static void ParsePublicFlagOnFileList(TArray<FLootLockerPlayerFile>& ParsedFilesList, const TArray<TSharedPtr<FJsonValue>>& JsonFilesList);
182};
void(* FLootLockerDefaultDelegate)(FLootLockerResponse)
Definition LootLockerResponse.h:38
Definition LootLockerPlayerFilesRequestHandler.h:161
static FString PromoteFileRevision(const FLootLockerPlayerData &PlayerData, const int32 FileID, const FString &RevisionID, const FLootLockerDefaultDelegate &OnComplete)
static FString DeletePlayerFileByKey(const FLootLockerPlayerData &PlayerData, const FString &Key, const FLootLockerFileDeletedDelegate &OnComplete)
ULLPlayerFilesRequestHandler()
Definition LootLockerPlayerFilesRequestHandler.h:164
static FString GetFileRevisionByKey(const FLootLockerPlayerData &PlayerData, const FString &Key, const FString &RevisionID, const FLootLockerFileContentDelegate &OnComplete)
static FString UploadFile(const FLootLockerPlayerData &PlayerData, const FLootLockerFileUploadRequest &Request, const FLootLockerUploadFileDelegate &OnComplete)
static FString DeletePlayerFile(const FLootLockerPlayerData &PlayerData, const int32 FileID, const FLootLockerFileDeletedDelegate &OnComplete)
static FString ListFiles(const FLootLockerPlayerData &PlayerData, const FLootLockerFileListDelegate &OnComplete)
static FString ListOtherPlayersPublicFiles(const FLootLockerPlayerData &PlayerData, const int32 PlayerID, const FLootLockerFileListDelegate &OnComplete)
static FString ListFileRevisions(const FLootLockerPlayerData &PlayerData, const int32 FileID, const FLootLockerFileRevisionsDelegate &OnComplete)
static FString GetSingleFile(const FLootLockerPlayerData &PlayerData, const int32 FileID, const FLootLockerUploadFileDelegate &OnComplete)
static FString UpdateFile(const FLootLockerPlayerData &PlayerData, const int32 FileId, const FLootLockerFileUpdateRequest &Request, const FLootLockerUploadFileDelegate &OnComplete)
static FString GetFileByKey(const FLootLockerPlayerData &PlayerData, const FString &Key, const FLootLockerUploadFileDelegate &OnComplete)
static FString GetFileRevision(const FLootLockerPlayerData &PlayerData, const int32 FileID, const FString &RevisionID, const FLootLockerFileContentDelegate &OnComplete)
static FString ListFileRevisionsByKey(const FLootLockerPlayerData &PlayerData, const FString &Key, const FLootLockerFileRevisionsDelegate &OnComplete)
static FString PromoteFileRevisionByKey(const FLootLockerPlayerData &PlayerData, const FString &Key, const FString &RevisionID, const FLootLockerDefaultDelegate &OnComplete)
void(* FLootLockerUploadFileDelegate)(FLootLockerPlayerFileResponse)
C++ response callback delegate; receives an FLootLockerPlayerFileResponse result.
Definition LootLockerPlayerFilesRequestHandler.h:144
void(* FLootLockerFileContentDelegate)(FLootLockerPlayerFileContentResponse)
C++ response callback delegate; receives an FLootLockerPlayerFileContentResponse result.
Definition LootLockerPlayerFilesRequestHandler.h:156
void(* FLootLockerFileListDelegate)(FLootLockerFileListResponse)
C++ response callback delegate; receives an FLootLockerFileListResponse result.
Definition LootLockerPlayerFilesRequestHandler.h:147
void(* FLootLockerFileRevisionsDelegate)(FLootLockerPlayerFileRevisionsResponse)
C++ response callback delegate; receives an FLootLockerPlayerFileRevisionsResponse result.
Definition LootLockerPlayerFilesRequestHandler.h:153
void(* FLootLockerFileDeletedDelegate)(FLootLockerResponse)
C++ response callback delegate; receives an FLootLockerResponse result.
Definition LootLockerPlayerFilesRequestHandler.h:150
Definition LootLockerPlayerFilesRequestHandler.h:91
Definition LootLockerPlayerFilesRequestHandler.h:28
Definition LootLockerPlayerFilesRequestHandler.h:13
Definition LootLockerPlayerData.h:12
Definition LootLockerPlayerFilesRequestHandler.h:117
Definition LootLockerPlayerFilesRequestHandler.h:99
Definition LootLockerPlayerFilesRequestHandler.h:37
Definition LootLockerPlayerFilesRequestHandler.h:131
Definition LootLockerPlayerFilesRequestHandler.h:65
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19