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")
31 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
34 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
48 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
53 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
58 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
79 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
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")
131 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
136 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
141 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
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:33
FString Code
A descriptive code identifying the error.
Definition LootLockerErrorData.h:37
FString Message
A free text description of the problem and potential suggestions for fixing it.
Definition LootLockerErrorData.h:54
FString Trace_id
A unique identifier for tracing the request through LootLocker systems, use this in contact with supp...
Definition LootLockerErrorData.h:46
int Retry_after_seconds
If the request was rate limited (status code 429) or the servers were temporarily unavailable (status...
Definition LootLockerErrorData.h:51
FString Request_id
A unique identifier of the request to use in contact with support.
Definition LootLockerErrorData.h:43
FString Doc_url
A link to further documentation on the error.
Definition LootLockerErrorData.h:40
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
static const int LL_UNDEFINED_BEHAVIOUR_ERROR
Definition LootLockerResponse.h:154
static const int LL_ERROR_REQUEST_TIMED_OUT
Definition LootLockerResponse.h:155
static const int LL_ERROR_UNDOCUMENTED
Definition LootLockerResponse.h:150
static const int LL_ERROR_PARSE_ERROR
Definition LootLockerResponse.h:153
static const int LL_ERROR_INVALID_HTTP
Definition LootLockerResponse.h:151
static const int LL_ERROR_SESSION_REFRESH_FAILED
Definition LootLockerResponse.h:156
static const int LL_ERROR_INVALID_INPUT
Definition LootLockerResponse.h:152