6#include "CoreMinimal.h"
7#include "JsonObjectWrapper.h"
11#include "LootLockerSurveysRequestHandler.generated.h"
21USTRUCT(BlueprintType, Category =
"LootLocker")
28 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
33 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
38 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
43 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
48 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
54 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
59 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
64 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
69 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
74 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
84USTRUCT(BlueprintType, Category =
"LootLocker")
91 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
96 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
101 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
107 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
114 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
119 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
136USTRUCT(BlueprintType, Category =
"LootLocker")
143 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
153 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
160 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
184USTRUCT(BlueprintType, Category =
"LootLocker")
191 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
198USTRUCT(BlueprintType, Category =
"LootLocker")
205 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
210 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
215 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
220 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
227USTRUCT(BlueprintType, Category =
"LootLocker")
235 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
240 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
245 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category =
"LootLocker")
static FString GetSurvey(const FLootLockerPlayerData &PlayerData, const FString &SurveyId, const FLootLockerGetSurveyResponseDelegate &OnComplete)
static FString CompleteSurvey(const FLootLockerPlayerData &PlayerData, const FString &SurveyId, const FLootLockerCompleteSurveyResponseDelegate &OnComplete)
static FString ListSurveys(const FLootLockerPlayerData &PlayerData, const FLootLockerListSurveysResponseDelegate &OnComplete)
ULootLockerSurveysRequestHandler()
Definition LootLockerSurveysRequestHandler.h:277
static FString SubmitSurveyAnswers(const FLootLockerPlayerData &PlayerData, const TArray< FLootLockerSurveyAnswer > &Answers, const FLootLockerSetMetadataResponseDelegate &OnComplete)
Submit answers to a survey for the current player.
void(* FLootLockerGetSurveyResponseDelegate)(FLootLockerGetSurveyResponse)
C++ response delegate for getting a single survey.
Definition LootLockerSurveysRequestHandler.h:261
void(* FLootLockerListSurveysResponseDelegate)(FLootLockerListSurveysResponse)
C++ response delegate for listing surveys.
Definition LootLockerSurveysRequestHandler.h:257
void(* FLootLockerCompleteSurveyResponseDelegate)(FLootLockerCompleteSurveyResponse)
C++ response delegate for completing a survey.
Definition LootLockerSurveysRequestHandler.h:265
Response returned after recording a survey completion for the current player.
Definition LootLockerSurveysRequestHandler.h:229
bool Complete
Whether the survey is now completed.
Definition LootLockerSurveysRequestHandler.h:236
FString Survey_id
The unique identifier of the completed survey.
Definition LootLockerSurveysRequestHandler.h:246
FDateTime Completed_at
When the survey was completed.
Definition LootLockerSurveysRequestHandler.h:241
Response containing a single survey and its questions.
Definition LootLockerSurveysRequestHandler.h:200
TArray< FLootLockerSurveyQuestion > Questions
The questions in this survey, ordered by sort_order.
Definition LootLockerSurveysRequestHandler.h:221
FString Id
The unique identifier of the survey.
Definition LootLockerSurveysRequestHandler.h:206
FDateTime Created_at
When the survey was created.
Definition LootLockerSurveysRequestHandler.h:216
FString Name
The name of the survey.
Definition LootLockerSurveysRequestHandler.h:211
Response containing the surveys the current player can see.
Definition LootLockerSurveysRequestHandler.h:186
TArray< FLootLockerSurvey > Surveys
The surveys visible to the current player, filtered by each survey's segments.
Definition LootLockerSurveysRequestHandler.h:192
Definition LootLockerPlayerData.h:12
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
A single answer to a survey question, submitted through SubmitSurveyAnswers.
Definition LootLockerSurveysRequestHandler.h:138
static FLootLockerSurveyAnswer FromBool(const FString &MetadataKey, bool Value)
Build a Bool answer, for checkbox questions.
FString Value
The answer value.
Definition LootLockerSurveysRequestHandler.h:154
static FLootLockerSurveyAnswer FromNumber(const FString &MetadataKey, double Value)
Build a Number answer, for number questions.
ELootLockerMetadataTypes Type
The metadata type of the value.
Definition LootLockerSurveysRequestHandler.h:161
FString Metadata_key
The metadata_key of the question this answers.
Definition LootLockerSurveysRequestHandler.h:144
static FLootLockerSurveyAnswer FromText(const FString &MetadataKey, const FString &Value)
Build a String answer, for short_text, long_text, date and select questions.
static FLootLockerSurveyAnswer FromMultiSelect(const FString &MetadataKey, const TArray< FString > &SelectedValues)
Build a Json answer, for multiselect questions.
A single question in a survey.
Definition LootLockerSurveysRequestHandler.h:23
FString Question_text
The text shown to the player for this question.
Definition LootLockerSurveysRequestHandler.h:39
bool Sensitive
When true, answers for this question's metadata_key are masked in game metadata reads.
Definition LootLockerSurveysRequestHandler.h:75
FString Field_type
The type of field to render for this question (for example short_text, long_text, select).
Definition LootLockerSurveysRequestHandler.h:49
FString Survey_id
The unique identifier of the survey this question belongs to.
Definition LootLockerSurveysRequestHandler.h:34
bool Required
Whether an answer to this question is required before the survey can be completed.
Definition LootLockerSurveysRequestHandler.h:60
FDateTime Created_at
When the question was created.
Definition LootLockerSurveysRequestHandler.h:70
FString Id
The unique identifier of the question.
Definition LootLockerSurveysRequestHandler.h:29
FJsonObjectWrapper Params
Opaque JSON parameters for the field type, for example the available options for a select field.
Definition LootLockerSurveysRequestHandler.h:55
FString Metadata_key
The player metadata key that the answer to this question is stored under.
Definition LootLockerSurveysRequestHandler.h:44
int32 Sort_order
The order in which this question should be presented, ascending.
Definition LootLockerSurveysRequestHandler.h:65
A survey that a player can see and complete.
Definition LootLockerSurveysRequestHandler.h:86
bool Completed
Whether the current player has already completed this survey.
Definition LootLockerSurveysRequestHandler.h:108
FString Name
The name of the survey.
Definition LootLockerSurveysRequestHandler.h:97
FDateTime Completed_at
When the current player completed this survey.
Definition LootLockerSurveysRequestHandler.h:115
FString Id
The unique identifier of the survey.
Definition LootLockerSurveysRequestHandler.h:92
FDateTime Created_at
When the survey was created.
Definition LootLockerSurveysRequestHandler.h:102
TArray< FLootLockerSurveyQuestion > Questions
The questions in this survey, ordered by sort_order.
Definition LootLockerSurveysRequestHandler.h:120