5#include "CoreMinimal.h"
9#include "LootLockerResponse.generated.h"
22 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
25 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
29 FString FullTextFromServer = "";
31 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
34 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
48 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
53 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
54 FString Next_Cursor = "";
58 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
59 FString Previous_Cursor = "";
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
75 int32 Next_Cursor = 0;
79 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
80 int32 Previous_Cursor = 0;
90 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
95 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
106 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
111 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
116 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
121 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
126 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
127 int32 Current_page = 0;
131 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
132 FString Next_page = "";
136 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
137 FString Prev_page = "";
141 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
150 static const int LL_ERROR_UNDOCUMENTED = 0;
151 static const int LL_ERROR_INVALID_HTTP = -1;
152 static const int LL_ERROR_INVALID_INPUT = -2;
153 static const int LL_ERROR_PARSE_ERROR = -3;
154 static const int LL_UNDEFINED_BEHAVIOUR_ERROR = -4;
155 static const int LL_ERROR_REQUEST_TIMED_OUT = -5;
156 static const int LL_ERROR_SESSION_REFRESH_FAILED = -6;
164 static T
Error(FString ErrorMessage,
int StatusCode = 0,
const FString& PlayerUlid =
"")
167 ErrorResponse.success =
false;
168 ErrorResponse.StatusCode = StatusCode;
169 ErrorResponse.FullTextFromServer =
"{ \"message\": \"" + ErrorMessage +
"\"}";
170 ErrorResponse.ErrorData.Message = ErrorMessage;
171 ErrorResponse.Context.PlayerUlid = PlayerUlid;
173 return ErrorResponse;
181 ErrorResponse.success = ExistingError.
success;
182 ErrorResponse.StatusCode = ExistingError.
StatusCode;
197 return ErrorResponse;
void(* FLootLockerDefaultDelegate)(FLootLockerResponse)
Definition LootLockerResponse.h:38
void(* FResponseCallback)(FLootLockerResponse)
Definition LootLockerResponse.h:39
Definition LootLockerResponse.h:160
static T ErrorFromError(FLootLockerResponse ExistingError)
Definition LootLockerResponse.h:178
static T Error(FString ErrorMessage, int StatusCode=0, const FString &PlayerUlid="")
Definition LootLockerResponse.h:164
Definition LootLockerErrorData.h:10
FString Code
A descriptive code identifying the error.
Definition LootLockerErrorData.h:14
FString Message
A free text description of the problem and potential suggestions for fixing it.
Definition LootLockerErrorData.h:31
FString Trace_id
A unique identifier for tracing the request through LootLocker systems, use this in contact with supp...
Definition LootLockerErrorData.h:23
int Retry_after_seconds
If the request was rate limited (status code 429) or the servers were temporarily unavailable (status...
Definition LootLockerErrorData.h:28
FString Request_id
A unique identifier of the request to use in contact with support.
Definition LootLockerErrorData.h:20
FString Doc_url
A link to further documentation on the error.
Definition LootLockerErrorData.h:17
Definition LootLockerRequestContext.h:11
FString RequestURL
The url that this request was made to.
Definition LootLockerRequestContext.h:24
FString RequestId
The unique identifier for this request.
Definition LootLockerRequestContext.h:21
FString PlayerUlid
What player this request was made on behalf of.
Definition LootLockerRequestContext.h:15
FString RequestTime
The time that this request was made.
Definition LootLockerRequestContext.h:18
FString RequestMethod
The HTTP Method that was used for this request.
Definition LootLockerRequestContext.h:27
FString RequestParametersJsonString
The request parameters as a json string.
Definition LootLockerRequestContext.h:30
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
bool success
Whether this request was a success.
Definition LootLockerResponse.h:23
FLootLockerRequestContext Context
Context for the request.
Definition LootLockerResponse.h:35
int StatusCode
HTTP Status code from the request to LootLockers backend.
Definition LootLockerResponse.h:26
FString FullTextFromServer
Raw text/http body from the server response.
Definition LootLockerResponse.h:29
FLootLockerErrorData ErrorData
If this request was not a success, this structure holds all the information needed to identify the pr...
Definition LootLockerResponse.h:32
Static defines of the different predefined error status codes that can occur in responses.
Definition LootLockerResponse.h:149