LootLocker Unreal SDK 10.7.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerNotificationsRequestHandler.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 "Dom/JsonObject.h"
10#include "LootLockerNotificationsRequestHandler.generated.h"
11
12//==================================================
13// Enum Definitions
14//==================================================
15
18UENUM(BlueprintType, Category = "LootLocker")
23{
24 low = 0,
25 medium = 1,
26 high = 2,
28};
29
30
33UENUM(BlueprintType, Category = "LootLocker")
49
50
53UENUM(BlueprintType, Category = "LootLocker")
75
76
79UENUM(BlueprintType, Category = "LootLocker")
91
92
95UENUM(BlueprintType, Category = "LootLocker")
105
106
107//==================================================
108// Static String Definitions
109//==================================================
110
115{
119 struct LOOTLOCKERSDK_API NotificationTypes
120 {
121 static const FString PullRewardAcquired;
122 };
123
127 struct LOOTLOCKERSDK_API NotificationSources
128 {
129 static const FString Triggers;
130 struct LOOTLOCKERSDK_API Purchasing
131 {
132 static const FString SteamStore;
133 static const FString AppleAppStore;
134 static const FString GooglePlayStore;
135 static const FString LootLocker;
136 };
137 static const FString TwitchDrop;
138 static const FString LootLockerConsole;
139 static const FString LootLockerServerApi;
140 static const FString LootLockerAdminApi;
141 };
142
146 struct LOOTLOCKERSDK_API StandardContextKeys
147 {
151 struct LOOTLOCKERSDK_API Triggers
152 {
153 static const FString Id;
154 static const FString Key;
155 static const FString Limit;
156 };
157
161 struct LOOTLOCKERSDK_API Purchasing
162 {
166 struct LOOTLOCKERSDK_API SteamStore
167 {
168 static const FString CatalogId;
169 static const FString CatalogItemId;
170 static const FString EntitlementId;
171 static const FString CharacterId;
172 };
173
176 struct LOOTLOCKERSDK_API AppleAppStore
177 {
178 static const FString CatalogId;
179 static const FString CatalogItemId;
180 static const FString TransactionId;
181 };
182
185 struct LOOTLOCKERSDK_API GooglePlayStore
186 {
187 static const FString CatalogId;
188 static const FString CatalogItemId;
189 static const FString ProductId;
190 };
191
194 struct LOOTLOCKERSDK_API LootLocker
195 {
196 static const FString CatalogId;
197 static const FString CatalogItemId;
198 };
199 };
200
203 struct LOOTLOCKERSDK_API TwitchDrop
204 {
205 static const FString TwitchRewardId;
206 };
207 };
208};
209
213UCLASS(Blueprintable)
214class LOOTLOCKERSDK_API ULootLockerStaticNotificationStringBlueprintCallables : public UObject
215{
216 GENERATED_BODY()
217public:
219
223 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Types")
228 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Triggers")
233 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Purchasing")
238 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Purchasing")
243 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Purchasing")
248 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Purchasing")
253 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | Twitch Drop")
258 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | LootLocker Console")
263 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Sources | LootLocker Server API")
268 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Triggers")
273 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Triggers")
278 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Triggers")
283 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | SteamStore")
288 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | SteamStore")
293 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | SteamStore")
298 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | SteamStore")
303 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | AppleAppStore")
308 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | AppleAppStore")
313 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | AppleAppStore")
318 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | GooglePlayStore")
323 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | GooglePlayStore")
328 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | GooglePlayStore")
333 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | LootLocker")
338 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | LootLocker")
343 UFUNCTION(BlueprintPure, Category = "LootLocker Methods | Static Strings | Notifications | Standard Context Keys | Purchasing | LootLocker")
345};
346
347//==================================================
348// Data Type Definitions
349//==================================================
350
357
361USTRUCT(BlueprintType)
363{
364 GENERATED_BODY()
368 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
369 FString Key = "";
373 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
374 FString Value = "";
375};
376
380USTRUCT(BlueprintType)
382{
383 GENERATED_BODY()
387 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
388 FString Name = "";
392 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
393 FString Code = "";
397 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
398 FString Amount = "";
402 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
403 FString Id = "";
404};
405
409USTRUCT(BlueprintType)
411{
412 GENERATED_BODY()
416 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
417 FString Created_at = "";
421 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
422 FString Updated_at = "";
426 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
427 FString Amount = "";
431 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
436 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
437 FString Reward_id = "";
441 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
442 FString Currency_id = "";
443};
444
448USTRUCT(BlueprintType)
450{
451 GENERATED_BODY()
455 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
456 FString Key = "";
460 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
461 FString Name = "";
465 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
466 int Amount = 0;
470 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
471 FString Id = "";
472};
473
477USTRUCT(BlueprintType)
479{
480 GENERATED_BODY()
484 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
485 FString Created_at = "";
489 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
490 FString Updated_at = "";
494 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
499 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
500 int Amount = 0;
504 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
505 FString Progression_id = "";
509 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
510 FString Reward_id = "";
511};
512
516USTRUCT(BlueprintType)
518{
519 GENERATED_BODY()
523 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
524 FString Key = "";
528 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
529 FString Name = "";
533 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
534 FString Id = "";
535};
536
540USTRUCT(BlueprintType)
542{
543 GENERATED_BODY()
547 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
548 FString Created_at = "";
552 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
553 FString Updated_at = "";
557 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
562 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
563 FString Progression_id = "";
567 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
568 FString Reward_id = "";
569};
570
574USTRUCT(BlueprintType)
576{
577 GENERATED_BODY()
581 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
582 FString Name = "";
586 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
587 FString Thumbnail = "";
591 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
592 FString Variation_name = "";
596 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
597 FString Rental_option_name = "";
601 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
606 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
611 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
612 int Legacy_id = 0;
616 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
617 FString Id = "";
618};
619
623USTRUCT(BlueprintType)
625{
626 GENERATED_BODY()
630 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
631 FString Created_at = "";
635 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
636 FString Updated_at = "";
640 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
645 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
650 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
655 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
656 int Asset_id = 0;
660 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
661 FString Reward_id = "";
665 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
666 FString Asset_ulid = "";
672 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
673 TArray<int64> Asset_instance_ids;
674};
675
679USTRUCT(BlueprintType)
681{
682 GENERATED_BODY()
686 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
691 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
696 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
701 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
706 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
708};
709
713USTRUCT(BlueprintType)
715{
716 GENERATED_BODY()
720 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
721 FString Created_at = "";
722
726 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
727 FString Name = "";
728
732 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
733 FString Description = "";
734
738 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
740
744 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
745 FString Reward_id = "";
746};
747
751USTRUCT(BlueprintType)
753{
754 GENERATED_BODY()
758 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
763 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
768 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
773 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
778 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
783 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
785};
786
790USTRUCT(BlueprintType)
792{
793 GENERATED_BODY()
797 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
802 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
803 TMap<FString, FString> ContextAsDictionary;
807 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
812 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
817 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
818 FString BodyAsJsonString = "";
822 TSharedPtr<FJsonValue> BodyAsJsonValue;
823
827 LOOTLOCKERSDK_API bool TryGetContentBodyAsString(FString& Output) const;
831 LOOTLOCKERSDK_API bool TryGetContentBodyAsFloat(float& Output) const;
835 LOOTLOCKERSDK_API bool TryGetContentBodyAsInteger(int& Output) const;
839 LOOTLOCKERSDK_API bool TryGetContentBodyAsBool(bool& Output) const;
843 LOOTLOCKERSDK_API bool TryGetContentBodyAsStringArray(TArray<FString>& Output) const;
847 LOOTLOCKERSDK_API bool TryGetContentBodyAsFloatArray(TArray<float>& Output) const;
851 LOOTLOCKERSDK_API bool TryGetContentBodyAsIntegerArray(TArray<int>& Output) const;
855 LOOTLOCKERSDK_API bool TryGetContentBodyAsBoolArray(TArray<bool>& Output) const;
859 LOOTLOCKERSDK_API bool TryGetRawValue(TSharedPtr<FJsonValue>& Output) const;
863 LOOTLOCKERSDK_API bool TryGetContentBodyAsJsonObject(TSharedPtr<FJsonObject>& Output) const;
867 LOOTLOCKERSDK_API bool TryGetContentBodyAsJsonArray(TArray<TSharedPtr<FJsonValue>>& Output) const;
872};
873
877USTRUCT(BlueprintType)
879{
880 GENERATED_BODY()
884 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
885 FString Created_at = "";
889 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
890 FString Expiration_date = "";
894 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
895 FString Read_at = "";
899 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
900 FString Notification_type = "";
904 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
909 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
910 FString Source = "";
914 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
919 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
924 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
925 FString Id = "";
929 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
930 FString Player_id = "";
934 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
935 bool Read = false;
939 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
940 bool Custom = false;
941};
942
943//==================================================
944// Request Definitions
945//==================================================
946
950USTRUCT(BlueprintType, Category="LootLocker")
952{
953 GENERATED_BODY()
957 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
958 TArray<FString> Notifications;
959};
960
961//==================================================
962// Response Definitions
963//==================================================
964
968USTRUCT(BlueprintType, Category = "LootLocker")
970{
971 GENERATED_BODY()
972 // Empty unless there are errors
973};
974
978USTRUCT(BlueprintType, Category = "LootLocker")
980{
981 GENERATED_BODY()
985 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
990 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "LootLocker")
992
994
1008 bool TryGetNotificationsByIdentifyingValue(const FString& IdentifyingValue, TArray<FLootLockerNotification>& OutNotifications) const;
1009
1010private:
1011 TMap<FString, TArray<FLootLockerNotificationIdentifyingValueLookupStruct>> NotificationLookupTable;
1012};
1013
1014//==================================================
1015// Delegate Definitions
1016//==================================================
1019
1027
1028
1029//==================================================
1030// API Class Definition
1031//==================================================
1032
1034UCLASS()
1035class LOOTLOCKERSDK_API ULootLockerNotificationsRequestHandler : public UObject
1036{
1037 GENERATED_BODY()
1038public:
1040
1042 static FString ListNotifications(const FLootLockerPlayerData& PlayerData, bool ShowRead, const FString& OfType, const FString& WithSource, ELootLockerCustomNotificationFiltering CustomNotificationsFilter, int PerPage, int Page, const FLootLockerListNotificationsResponseDelegate& OnComplete);
1043 static FString ListNotifications(const FLootLockerPlayerData& PlayerData, ELootLockerNotificationPriority WithPriority, bool ShowRead, const FString& OfType, const FString& WithSource, ELootLockerCustomNotificationFiltering CustomNotificationsFilter, int PerPage, int Page, const FLootLockerListNotificationsResponseDelegate& OnComplete);
1044 static FString MarkNotificationsAsRead(const FLootLockerPlayerData& PlayerData, const TArray<FString>& NotificationIDs, const FLootLockerReadNotificationsResponseDelegate& OnComplete);
1046private:
1047 static FString ListNotifications(const FLootLockerPlayerData& PlayerData, const TMultiMap<FString, FString>& QueryParams, const FLootLockerListNotificationsResponseDelegate& OnComplete);
1048};
static FString ListNotificationsWithDefaultParameters(const FLootLockerPlayerData &PlayerData, const FLootLockerListNotificationsResponseDelegate &OnComplete)
static FString MarkNotificationsAsRead(const FLootLockerPlayerData &PlayerData, const TArray< FString > &NotificationIDs, const FLootLockerReadNotificationsResponseDelegate &OnComplete)
ULootLockerNotificationsRequestHandler()
Definition LootLockerNotificationsRequestHandler.h:1039
static FString MarkAllNotificationsAsRead(const FLootLockerPlayerData &PlayerData, const FLootLockerReadNotificationsResponseDelegate &OnComplete)
static FString ListNotifications(const FLootLockerPlayerData &PlayerData, bool ShowRead, const FString &OfType, const FString &WithSource, ELootLockerCustomNotificationFiltering CustomNotificationsFilter, int PerPage, int Page, const FLootLockerListNotificationsResponseDelegate &OnComplete)
static FString ListNotifications(const FLootLockerPlayerData &PlayerData, ELootLockerNotificationPriority WithPriority, bool ShowRead, const FString &OfType, const FString &WithSource, ELootLockerCustomNotificationFiltering CustomNotificationsFilter, int PerPage, int Page, const FLootLockerListNotificationsResponseDelegate &OnComplete)
static FString GetStandardPurchasingAppleAppStoreContextKeyCatalogItemIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:309
static FString GetStandardPurchasingSteamStoreContextKeyCharacterIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:299
static FString GetStandardPurchasingGooglePlayStoreContextKeyCatalogIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:319
static FString GetNotificationsSourceLootLockerServerAPIString()
Static String for use in Notifications – Matching Notification source LootLocker Server API.
Definition LootLockerNotificationsRequestHandler.h:264
static FString GetStandardPurchasingAppleAppStoreContextKeyCatalogIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:304
static FString GetStandardPurchasingLootLockerContextKeyCatalogIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:334
static FString GetStandardPurchasingSteamStoreContextKeyEntitlementIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:294
static FString GetStandardTriggersContextKeyKeyString()
Static String for use in Notification contexts – Standard Context Key for Triggers.
Definition LootLockerNotificationsRequestHandler.h:274
static FString GetNotificationsSourcePurchasingAppleAppStoreString()
Static String for use in Notifications – Matching Notification source Purchasing AppleAppStore.
Definition LootLockerNotificationsRequestHandler.h:239
static FString GetNotificationsSourceLootLockerConsoleString()
Static String for use in Notifications – Matching Notification source LootLocker Console.
Definition LootLockerNotificationsRequestHandler.h:259
static FString GetStandardPurchasingSteamStoreContextKeyCatalogIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:284
ULootLockerStaticNotificationStringBlueprintCallables()
Definition LootLockerNotificationsRequestHandler.h:218
static FString GetStandardTriggersContextKeyLimitString()
Static String for use in Notification contexts – Standard Context Key for Triggers.
Definition LootLockerNotificationsRequestHandler.h:279
static FString GetNotificationsSourceTwitchDropString()
Static String for use in Notifications – Matching Notification source Twitch Drop.
Definition LootLockerNotificationsRequestHandler.h:254
static FString GetStandardTwitchDropContextKeyTwitchRewardIdString()
Static String for use in Notification contexts – Standard Context Key for Twitch Drops.
Definition LootLockerNotificationsRequestHandler.h:344
static FString GetStandardPurchasingAppleAppStoreContextKeyTransactionIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:314
static FString GetNotificationsSourcePurchasingLootLockerString()
Static String for use in Notifications – Matching Notification source Purchasing LootLocker.
Definition LootLockerNotificationsRequestHandler.h:249
static FString GetTypePullRewardAcquiredString()
Static String for use in Notifications – Matching Notification type Pull Reward Acquired.
Definition LootLockerNotificationsRequestHandler.h:224
static FString GetNotificationsSourcePurchasingGooglePlayStoreString()
Static String for use in Notifications – Matching Notification source Purchasing GooglePlayStore.
Definition LootLockerNotificationsRequestHandler.h:244
static FString GetStandardTriggersContextKeyIdString()
Static String for use in Notification contexts – Standard Context Key for Triggers.
Definition LootLockerNotificationsRequestHandler.h:269
static FString GetStandardPurchasingGooglePlayStoreContextKeyProductIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:329
static FString GetStandardPurchasingLootLockerContextKeyCatalogItemIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:339
static FString GetNotificationsSourceTriggersString()
Static String for use in Notifications – Matching Notification source Triggers.
Definition LootLockerNotificationsRequestHandler.h:229
static FString GetNotificationsSourcePurchasingSteamStoreString()
Static String for use in Notifications – Matching Notification source Purchasing SteamStore.
Definition LootLockerNotificationsRequestHandler.h:234
static FString GetStandardPurchasingSteamStoreContextKeyCatalogItemIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:289
static FString GetStandardPurchasingGooglePlayStoreContextKeyCatalogItemIdString()
Static String for use in Notification contexts – Standard Context Key for Purchasing....
Definition LootLockerNotificationsRequestHandler.h:324
ELootLockerCustomNotificationFiltering
Enum for custom notification filtering.
Definition LootLockerNotificationsRequestHandler.h:100
ELootLockerNotificationSource
Enum of the different available sources for notifications.
Definition LootLockerNotificationsRequestHandler.h:38
ELootLockerNotificationContentBodyType
Enum of the different types of values that can be in the notification body.
Definition LootLockerNotificationsRequestHandler.h:58
void(* FLootLockerListNotificationsResponseDelegate)(FLootLockerListNotificationsResponse)
C++ response delegate for handling List Notifications Responses.
Definition LootLockerNotificationsRequestHandler.h:1022
ELootLockerNotificationContentRewardKind
Enum of the different kinds of notification bodies possible, use this to figure out how to parse the ...
Definition LootLockerNotificationsRequestHandler.h:84
ELootLockerNotificationPriority
Enum of the different available priorities for notifications.
Definition LootLockerNotificationsRequestHandler.h:23
void(* FLootLockerReadNotificationsResponseDelegate)(FLootLockerReadNotificationsResponse)
C++ response delegate for handling read notifications response.
Definition LootLockerNotificationsRequestHandler.h:1026
@ Custom_only
Definition LootLockerNotificationsRequestHandler.h:102
@ LootLocker_only
Definition LootLockerNotificationsRequestHandler.h:103
@ All
Definition LootLockerNotificationsRequestHandler.h:101
@ lootlocker_admin_api
Definition LootLockerNotificationsRequestHandler.h:47
@ lootlocker_server_api
Definition LootLockerNotificationsRequestHandler.h:46
@ purchasing_google_play_store
Definition LootLockerNotificationsRequestHandler.h:42
@ triggers
Definition LootLockerNotificationsRequestHandler.h:39
@ purchasing_apple_app_store
Definition LootLockerNotificationsRequestHandler.h:41
@ purchasing_steam_store
Definition LootLockerNotificationsRequestHandler.h:40
@ purchasing_lootlocker_store
Definition LootLockerNotificationsRequestHandler.h:43
@ twitch_drop
Definition LootLockerNotificationsRequestHandler.h:44
@ lootlocker_console
Definition LootLockerNotificationsRequestHandler.h:45
@ json_object
Definition LootLockerNotificationsRequestHandler.h:66
@ json_decimal
Definition LootLockerNotificationsRequestHandler.h:64
@ json_array
Definition LootLockerNotificationsRequestHandler.h:67
@ json_array_object
Definition LootLockerNotificationsRequestHandler.h:72
@ none
Definition LootLockerNotificationsRequestHandler.h:59
@ null
Definition LootLockerNotificationsRequestHandler.h:60
@ json_bool
Definition LootLockerNotificationsRequestHandler.h:65
@ json_array_bool
Definition LootLockerNotificationsRequestHandler.h:71
@ json_array_integer
Definition LootLockerNotificationsRequestHandler.h:69
@ json_integer
Definition LootLockerNotificationsRequestHandler.h:63
@ json_string
Definition LootLockerNotificationsRequestHandler.h:62
@ unknown
Definition LootLockerNotificationsRequestHandler.h:73
@ json_array_decimal
Definition LootLockerNotificationsRequestHandler.h:70
@ json_array_string
Definition LootLockerNotificationsRequestHandler.h:68
@ reward
Definition LootLockerNotificationsRequestHandler.h:61
@ progression_reset
Definition LootLockerNotificationsRequestHandler.h:88
@ currency
Definition LootLockerNotificationsRequestHandler.h:86
@ progression_points
Definition LootLockerNotificationsRequestHandler.h:89
@ asset
Definition LootLockerNotificationsRequestHandler.h:87
@ group
Definition LootLockerNotificationsRequestHandler.h:85
@ medium
Definition LootLockerNotificationsRequestHandler.h:25
@ low
Definition LootLockerNotificationsRequestHandler.h:24
@ high
Definition LootLockerNotificationsRequestHandler.h:26
@ emergency
Definition LootLockerNotificationsRequestHandler.h:27
Definition LootLockerResponse.h:101
Response containing a paginated list of notifications for the player, with a lookup helper for findin...
Definition LootLockerNotificationsRequestHandler.h:980
FLootLockerExtendedIndexBasedPagination Pagination
Pagination data for this set of notifications.
Definition LootLockerNotificationsRequestHandler.h:991
TArray< FLootLockerNotification > Notifications
List of the requested notifications according to pagination settings.
Definition LootLockerNotificationsRequestHandler.h:986
bool TryGetNotificationsByIdentifyingValue(const FString &IdentifyingValue, TArray< FLootLockerNotification > &OutNotifications) const
Get notifications by their identifying value.
Holds the full reward body of a notification's content, with the active reward type determined by the...
Definition LootLockerNotificationsRequestHandler.h:753
FLootLockerNotificationRewardProgression Progression_points
The Progression Points reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:784
FLootLockerNotificationRewardAsset Asset
The Asset reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:774
ELootLockerNotificationContentRewardKind Kind
The kind of notification body this contains.
Definition LootLockerNotificationsRequestHandler.h:759
FLootLockerNotificationRewardGroup Group
The Group reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:764
FLootLockerNotificationRewardCurrency Currency
The currency reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:769
FLootLockerNotificationRewardProgressionReset Progression_reset
The Progression Reset reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:779
Holds the content of a notification, including context key-value pairs, body type hint,...
Definition LootLockerNotificationsRequestHandler.h:792
ELootLockerNotificationContentBodyType BodyType
The interpreted type of the content body.
Definition LootLockerNotificationsRequestHandler.h:813
bool TryGetContentBodyAsInteger(int &Output) const
Get the body as an integer.
bool TryGetContentBodyAsJsonObject(TSharedPtr< FJsonObject > &Output) const
Get the body as a Json Object.
bool TryGetContentBodyAsBool(bool &Output) const
Get the body as a boolean.
bool TryGetContentBodyAsRewardNotification(FLootLockerNotificationContentRewardBody &Output) const
Get the body as a LootLockerNotificationContentBody object.
bool TryGetContentBodyAsBoolArray(TArray< bool > &Output) const
Get the body as a boolean.
TArray< FLootLockerNotificationContextEntry > Context
The context for this content.
Definition LootLockerNotificationsRequestHandler.h:798
TMap< FString, FString > ContextAsDictionary
The context for this content.
Definition LootLockerNotificationsRequestHandler.h:803
bool TryGetContentBodyAsFloatArray(TArray< float > &Output) const
Get the body as a float.
bool TryGetContentBodyAsJsonArray(TArray< TSharedPtr< FJsonValue > > &Output) const
Get the body as a Json Array.
TSharedPtr< FJsonValue > BodyAsJsonValue
The body for this notification content as a json value, use the dedicated methods to parse this.
Definition LootLockerNotificationsRequestHandler.h:822
FString BodyAsJsonString
The body for this notification content as a json string, use the dedicated methods to parse this.
Definition LootLockerNotificationsRequestHandler.h:818
bool TryGetContentBodyAsStringArray(TArray< FString > &Output) const
Get the body as a String.
bool TryGetContentBodyAsString(FString &Output) const
Get the body as a String.
bool TryGetRawValue(TSharedPtr< FJsonValue > &Output) const
Get the body as an unparsed json body.
FString IdentifyingContextKey
The key from the context that will most likely help in identifying this notification.
Definition LootLockerNotificationsRequestHandler.h:808
bool TryGetContentBodyAsFloat(float &Output) const
Get the body as a float.
bool TryGetContentBodyAsIntegerArray(TArray< int > &Output) const
Get the body as an integer.
Holds a single key-value context entry attached to a notification's content.
Definition LootLockerNotificationsRequestHandler.h:363
FString Value
The value of this context entry.
Definition LootLockerNotificationsRequestHandler.h:374
FString Key
The key for this context entry.
Definition LootLockerNotificationsRequestHandler.h:369
Holds one member reward within a notification group reward, identified by kind, with the relevant rew...
Definition LootLockerNotificationsRequestHandler.h:681
FLootLockerNotificationRewardProgression Progression_points
The Progression Points reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:707
FLootLockerNotificationRewardAsset Asset
The details on the Asset.
Definition LootLockerNotificationsRequestHandler.h:697
ELootLockerNotificationContentRewardKind Kind
The kind of reward, (asset / currency / progression points / progression reset).
Definition LootLockerNotificationsRequestHandler.h:687
FLootLockerNotificationRewardCurrency Currency
The details on the Currency.
Definition LootLockerNotificationsRequestHandler.h:692
FLootLockerNotificationRewardProgressionReset Progression_reset
The Progression Reset reward, will be null if the reward is of another type.
Definition LootLockerNotificationsRequestHandler.h:702
Definition LootLockerNotificationsRequestHandler.h:352
FString IdentifyingContextKey
Definition LootLockerNotificationsRequestHandler.h:353
int NotificationArrayIndex
Definition LootLockerNotificationsRequestHandler.h:355
FString NotificationULID
Definition LootLockerNotificationsRequestHandler.h:354
Holds the display details of an asset referenced in a notification reward, including its name,...
Definition LootLockerNotificationsRequestHandler.h:576
FString Variation_name
The name of the Variation Asset, will be null if it's not a Variation Asset.
Definition LootLockerNotificationsRequestHandler.h:592
int Rental_option_id
The ID of the rental option, will be 0 if it's not a Rental Asset.
Definition LootLockerNotificationsRequestHandler.h:607
FString Id
the ULID of the Asset.
Definition LootLockerNotificationsRequestHandler.h:617
int Variation_id
The ID of the Variation, will be 0 if it's not a Variation Asset.
Definition LootLockerNotificationsRequestHandler.h:602
FString Rental_option_name
The name of the Rental Asset, will be null if it's not a Variation Asset.
Definition LootLockerNotificationsRequestHandler.h:597
FString Name
The name of the Asset.
Definition LootLockerNotificationsRequestHandler.h:582
int Legacy_id
The ID of the Asset.
Definition LootLockerNotificationsRequestHandler.h:612
FString Thumbnail
The url to the thumbnail, will be null if it's not set in the LootLocker console.
Definition LootLockerNotificationsRequestHandler.h:587
Represents an asset reward in a notification, linking the reward to an asset and its optional variati...
Definition LootLockerNotificationsRequestHandler.h:625
FLootLockerNotificationRewardAssetDetails Details
The details on the Asset.
Definition LootLockerNotificationsRequestHandler.h:641
int Asset_variation_id
The Asset variation ID, will be 0 if it's not a variation.
Definition LootLockerNotificationsRequestHandler.h:646
int Asset_rental_option_id
The Asset rental option ID, will be 0 if it's not a rental.
Definition LootLockerNotificationsRequestHandler.h:651
FString Reward_id
The ID of the reward.
Definition LootLockerNotificationsRequestHandler.h:661
FString Updated_at
The date the Asset reward was last updated.
Definition LootLockerNotificationsRequestHandler.h:636
TArray< int64 > Asset_instance_ids
The IDs of the Asset Instances that were granted.
Definition LootLockerNotificationsRequestHandler.h:673
FString Created_at
The date the Asset reward was created.
Definition LootLockerNotificationsRequestHandler.h:631
FString Asset_ulid
The ULID of the Asset.
Definition LootLockerNotificationsRequestHandler.h:666
int Asset_id
The ID of the Asset.
Definition LootLockerNotificationsRequestHandler.h:656
Holds the display details of a currency referenced in a notification reward, including its name,...
Definition LootLockerNotificationsRequestHandler.h:382
FString Code
The code of the Currency.
Definition LootLockerNotificationsRequestHandler.h:393
FString Amount
The amount of the Currency.
Definition LootLockerNotificationsRequestHandler.h:398
FString Id
The ID of the Currency.
Definition LootLockerNotificationsRequestHandler.h:403
FString Name
The name of the Currency.
Definition LootLockerNotificationsRequestHandler.h:388
Represents a currency reward in a notification, linking the reward to a currency amount and its curre...
Definition LootLockerNotificationsRequestHandler.h:411
FLootLockerNotificationRewardCurrencyDetails Details
The details on the Currency.
Definition LootLockerNotificationsRequestHandler.h:432
FString Created_at
The date the Currency reward was created.
Definition LootLockerNotificationsRequestHandler.h:417
FString Updated_at
The date the Currency reward was last updated.
Definition LootLockerNotificationsRequestHandler.h:422
FString Currency_id
The ID of the Currency.
Definition LootLockerNotificationsRequestHandler.h:442
FString Amount
The amount of Currency to be rewarded.
Definition LootLockerNotificationsRequestHandler.h:427
FString Reward_id
The ID of a reward.
Definition LootLockerNotificationsRequestHandler.h:437
Represents a group reward in a notification, bundling multiple reward-type associations under a share...
Definition LootLockerNotificationsRequestHandler.h:715
TArray< FLootLockerNotificationGroupRewardAssociations > Associations
Associations for the Group reward.
Definition LootLockerNotificationsRequestHandler.h:739
FString Description
The description of the Group.
Definition LootLockerNotificationsRequestHandler.h:733
FString Name
The name of the Group.
Definition LootLockerNotificationsRequestHandler.h:727
FString Reward_id
The ID of the reward.
Definition LootLockerNotificationsRequestHandler.h:745
FString Created_at
The date the Group reward was created.
Definition LootLockerNotificationsRequestHandler.h:721
Holds the display details of a progression referenced in a progression-points notification reward,...
Definition LootLockerNotificationsRequestHandler.h:450
FString Id
The ID of the Progression.
Definition LootLockerNotificationsRequestHandler.h:471
int Amount
The amount of Progression Points to be rewarded.
Definition LootLockerNotificationsRequestHandler.h:466
FString Key
The key of the Progression.
Definition LootLockerNotificationsRequestHandler.h:456
FString Name
The name of the Progression.
Definition LootLockerNotificationsRequestHandler.h:461
Holds the display details of a progression referenced in a progression-reset notification reward,...
Definition LootLockerNotificationsRequestHandler.h:518
FString Id
The ID of the Progression.
Definition LootLockerNotificationsRequestHandler.h:534
FString Key
The key of the Progression.
Definition LootLockerNotificationsRequestHandler.h:524
FString Name
The name of the Progression.
Definition LootLockerNotificationsRequestHandler.h:529
Represents a progression-reset reward in a notification, linking the reward to the affected progressi...
Definition LootLockerNotificationsRequestHandler.h:542
FLootLockerNotificationRewardProgressionResetDetails Details
The details of the Progression reward.
Definition LootLockerNotificationsRequestHandler.h:558
FString Created_at
The date the Progression Reset reward was created.
Definition LootLockerNotificationsRequestHandler.h:548
FString Progression_id
The ID of the Progression.
Definition LootLockerNotificationsRequestHandler.h:563
FString Updated_at
The date the Progression Reset reward was last updated.
Definition LootLockerNotificationsRequestHandler.h:553
FString Reward_id
The ID of the reward.
Definition LootLockerNotificationsRequestHandler.h:568
Represents a progression-points reward in a notification, linking the reward to a progression and the...
Definition LootLockerNotificationsRequestHandler.h:479
int Amount
The amount of Progression Points to be rewarded.
Definition LootLockerNotificationsRequestHandler.h:500
FString Progression_id
The ID of the Progression.
Definition LootLockerNotificationsRequestHandler.h:505
FString Created_at
The date the Progression Points reward was created.
Definition LootLockerNotificationsRequestHandler.h:485
FString Reward_id
The ID of the reward.
Definition LootLockerNotificationsRequestHandler.h:510
FString Updated_at
The date the Progression Points was last updated.
Definition LootLockerNotificationsRequestHandler.h:490
FLootLockerNotificationRewardProgressionDetails Details
The details of the Progression.
Definition LootLockerNotificationsRequestHandler.h:495
Represents a full notification record for a player, including its type, priority, source,...
Definition LootLockerNotificationsRequestHandler.h:879
ELootLockerNotificationSource SourceEnum
The originating source of this notification (for example, did it originate from a purchase,...
Definition LootLockerNotificationsRequestHandler.h:915
FString Source
The originating source of this notification (for example, did it originate from a purchase,...
Definition LootLockerNotificationsRequestHandler.h:910
FLootLockerNotificationContent Content
The actual content of this notification.
Definition LootLockerNotificationsRequestHandler.h:920
FString Expiration_date
At what time that this notification expires, after this time, the notification is no longer returned.
Definition LootLockerNotificationsRequestHandler.h:890
bool Read
Whether this notification has been read or not.
Definition LootLockerNotificationsRequestHandler.h:935
bool Custom
Whether this notification is a custom notification (custom defined by this game) or not (default defi...
Definition LootLockerNotificationsRequestHandler.h:940
FString Player_id
The id of the player that this notification is for.
Definition LootLockerNotificationsRequestHandler.h:930
ELootLockerNotificationPriority Priority
The priority of this notification (default: medium).
Definition LootLockerNotificationsRequestHandler.h:905
FString Created_at
The time that this notification was created.
Definition LootLockerNotificationsRequestHandler.h:885
FString Id
The id of the notification, use this when marking as read.
Definition LootLockerNotificationsRequestHandler.h:925
FString Notification_type
The type of this notification, if this is a custom notification then this is set by the sender of the...
Definition LootLockerNotificationsRequestHandler.h:900
FString Read_at
The time that this notification was read.
Definition LootLockerNotificationsRequestHandler.h:895
Definition LootLockerPlayerData.h:12
Request to mark a list of notifications as read by their identifiers.
Definition LootLockerNotificationsRequestHandler.h:952
TArray< FString > Notifications
List of ids of the notifications to mark as read.
Definition LootLockerNotificationsRequestHandler.h:958
Response from marking notifications as read, containing only base response status unless errors occur...
Definition LootLockerNotificationsRequestHandler.h:970
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19
Definition LootLockerNotificationsRequestHandler.h:131
static const FString SteamStore
Definition LootLockerNotificationsRequestHandler.h:132
static const FString GooglePlayStore
Definition LootLockerNotificationsRequestHandler.h:134
static const FString LootLocker
Definition LootLockerNotificationsRequestHandler.h:135
static const FString AppleAppStore
Definition LootLockerNotificationsRequestHandler.h:133
Possible sources for notifications.
Definition LootLockerNotificationsRequestHandler.h:128
static const FString LootLockerAdminApi
Definition LootLockerNotificationsRequestHandler.h:140
static const FString LootLockerServerApi
Definition LootLockerNotificationsRequestHandler.h:139
static const FString LootLockerConsole
Definition LootLockerNotificationsRequestHandler.h:138
static const FString TwitchDrop
Definition LootLockerNotificationsRequestHandler.h:137
static const FString Triggers
Definition LootLockerNotificationsRequestHandler.h:129
Possible types of notifications.
Definition LootLockerNotificationsRequestHandler.h:120
static const FString PullRewardAcquired
Definition LootLockerNotificationsRequestHandler.h:121
Standard context keys to expect when source is purchasing from the Apple app store.
Definition LootLockerNotificationsRequestHandler.h:177
static const FString TransactionId
Definition LootLockerNotificationsRequestHandler.h:180
static const FString CatalogItemId
Definition LootLockerNotificationsRequestHandler.h:179
static const FString CatalogId
Definition LootLockerNotificationsRequestHandler.h:178
Standard context keys to expect when source is purchasing from the GooglePlay store.
Definition LootLockerNotificationsRequestHandler.h:186
static const FString ProductId
Definition LootLockerNotificationsRequestHandler.h:189
static const FString CatalogId
Definition LootLockerNotificationsRequestHandler.h:187
static const FString CatalogItemId
Definition LootLockerNotificationsRequestHandler.h:188
Standard context keys to expect when source is purchasing from LootLocker.
Definition LootLockerNotificationsRequestHandler.h:195
static const FString CatalogId
Definition LootLockerNotificationsRequestHandler.h:196
static const FString CatalogItemId
Definition LootLockerNotificationsRequestHandler.h:197
Standard context keys to expect when source is purchasing from the Steam store.
Definition LootLockerNotificationsRequestHandler.h:167
static const FString CatalogId
Definition LootLockerNotificationsRequestHandler.h:168
static const FString CharacterId
Definition LootLockerNotificationsRequestHandler.h:171
static const FString EntitlementId
Definition LootLockerNotificationsRequestHandler.h:170
static const FString CatalogItemId
Definition LootLockerNotificationsRequestHandler.h:169
Standard context keys to expect when source is purchasing.
Definition LootLockerNotificationsRequestHandler.h:162
Standard context keys to expect when source is triggers.
Definition LootLockerNotificationsRequestHandler.h:152
static const FString Limit
Definition LootLockerNotificationsRequestHandler.h:155
static const FString Key
Definition LootLockerNotificationsRequestHandler.h:154
static const FString Id
Definition LootLockerNotificationsRequestHandler.h:153
Standard context keys to expect when source is a Twitch Drop.
Definition LootLockerNotificationsRequestHandler.h:204
static const FString TwitchRewardId
Definition LootLockerNotificationsRequestHandler.h:205
The standard context keys to expect for different notification sources.
Definition LootLockerNotificationsRequestHandler.h:147
Set of static string definitions to use for matching in different Notification contexts.
Definition LootLockerNotificationsRequestHandler.h:115