5
5
#include " CoreMinimal.h"
6
6
#include " SatoriClient.h"
7
7
#include " Kismet/BlueprintAsyncActionBase.h"
8
- #include " NakamaError .h"
8
+ #include " SatoriError .h"
9
9
10
10
#include " SatoriClientRequests.generated.h"
11
11
12
12
// Delegates
13
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriAuthenticateCustom, UNakamaSession *, Session, FNakamaError , Error);
14
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriAuthenticateRefresh, UNakamaSession *, Session, FNakamaError , Error);
15
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriAuthenticateLogout, FNakamaError , Error);
16
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriIdentify, UNakamaSession *, Session, FNakamaError , Error);
17
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriListIdentityProperties, FSatoriProperties, Properties, FNakamaError , Error);
18
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriUpdateProperties, FNakamaError , Error);
19
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriDeleteIdentity, FNakamaError , Error);
13
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriAuthenticateCustom, USatoriSession *, Session, FSatoriError , Error);
14
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriAuthenticateRefresh, USatoriSession *, Session, FSatoriError , Error);
15
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriAuthenticateLogout, FSatoriError , Error);
16
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriIdentify, USatoriSession *, Session, FSatoriError , Error);
17
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriListIdentityProperties, FSatoriProperties, Properties, FSatoriError , Error);
18
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriUpdateProperties, FSatoriError , Error);
19
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriDeleteIdentity, FSatoriError , Error);
20
20
21
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriPostEvent, FNakamaError , Error);
22
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetExperiments, FSatoriExperimentList, Experiments, FNakamaError , Error);
23
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetFlags, FSatoriFlagList, Flags, FNakamaError , Error);
24
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetFlagOverrides, FSatoriFlagOverrideList, FlagOverrides, FNakamaError , Error);
25
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetLiveEvents, FSatoriLiveEventList, LiveEvents, FNakamaError , Error);
26
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetMessages, FSatoriMessageList, Messages, FNakamaError , Error);
27
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriUpdateMessage, FNakamaError , Error);
28
- DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriDeleteMessage, FNakamaError , Error);
21
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriPostEvent, FSatoriError , Error);
22
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetExperiments, FSatoriExperimentList, Experiments, FSatoriError , Error);
23
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetFlags, FSatoriFlagList, Flags, FSatoriError , Error);
24
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetFlagOverrides, FSatoriFlagOverrideList, FlagOverrides, FSatoriError , Error);
25
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetLiveEvents, FSatoriLiveEventList, LiveEvents, FSatoriError , Error);
26
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnSatoriGetMessages, FSatoriMessageList, Messages, FSatoriError , Error);
27
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriUpdateMessage, FSatoriError , Error);
28
+ DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnSatoriDeleteMessage, FSatoriError , Error);
29
29
30
30
31
31
@@ -95,7 +95,7 @@ class SATORIBLUEPRINTS_API USatoriClientAuthenticateRefresh : public UBlueprintA
95
95
TObjectPtr<USatoriClient> SatoriClient;
96
96
97
97
UPROPERTY ()
98
- TObjectPtr<UNakamaSession > UserSession;
98
+ TObjectPtr<USatoriSession > UserSession;
99
99
100
100
UPROPERTY (BlueprintAssignable)
101
101
FOnSatoriAuthenticateRefresh OnSuccess;
@@ -110,7 +110,7 @@ class SATORIBLUEPRINTS_API USatoriClientAuthenticateRefresh : public UBlueprintA
110
110
* @param Client The Client to use.
111
111
*/
112
112
UFUNCTION (BlueprintCallable, Category = " Satori|Authentication" , meta = (BlueprintInternalUseOnly = " true" ))
113
- static USatoriClientAuthenticateRefresh* AuthenticateRefresh (USatoriClient* Client, UNakamaSession * Session);
113
+ static USatoriClientAuthenticateRefresh* AuthenticateRefresh (USatoriClient* Client, USatoriSession * Session);
114
114
115
115
virtual void Activate () override ;
116
116
};
@@ -131,7 +131,7 @@ class SATORIBLUEPRINTS_API USatoriClientAuthenticateLogout : public UBlueprintAs
131
131
TObjectPtr<USatoriClient> SatoriClient;
132
132
133
133
UPROPERTY ()
134
- TObjectPtr<UNakamaSession > UserSession;
134
+ TObjectPtr<USatoriSession > UserSession;
135
135
136
136
UPROPERTY (BlueprintAssignable)
137
137
FOnSatoriAuthenticateLogout OnSuccess;
@@ -146,7 +146,7 @@ class SATORIBLUEPRINTS_API USatoriClientAuthenticateLogout : public UBlueprintAs
146
146
* @param Client The Client to use.
147
147
*/
148
148
UFUNCTION (BlueprintCallable, Category = " Satori|Authentication" , meta = (BlueprintInternalUseOnly = " true" ))
149
- static USatoriClientAuthenticateLogout* AuthenticateLogout (USatoriClient* Client, UNakamaSession * Session);
149
+ static USatoriClientAuthenticateLogout* AuthenticateLogout (USatoriClient* Client, USatoriSession * Session);
150
150
151
151
virtual void Activate () override ;
152
152
};
@@ -167,7 +167,7 @@ class SATORIBLUEPRINTS_API USatoriClientIdentify : public UBlueprintAsyncActionB
167
167
TObjectPtr<USatoriClient> SatoriClient;
168
168
169
169
UPROPERTY ()
170
- TObjectPtr<UNakamaSession > UserSession;
170
+ TObjectPtr<USatoriSession > UserSession;
171
171
172
172
UPROPERTY (BlueprintAssignable)
173
173
FOnSatoriIdentify OnSuccess;
@@ -185,7 +185,7 @@ class SATORIBLUEPRINTS_API USatoriClientIdentify : public UBlueprintAsyncActionB
185
185
UFUNCTION (BlueprintCallable, Category = " Satori|Identity" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " DefaultProperties,CustomProperties" ))
186
186
static USatoriClientIdentify* Identify (
187
187
USatoriClient* Client,
188
- UNakamaSession * Session,
188
+ USatoriSession * Session,
189
189
const FString& ID,
190
190
const TMap<FString, FString>& DefaultProperties,
191
191
const TMap<FString, FString>& CustomProperties);
@@ -214,7 +214,7 @@ class SATORIBLUEPRINTS_API USatoriClientListIdentityProperties : public UBluepri
214
214
TObjectPtr<USatoriClient> SatoriClient;
215
215
216
216
UPROPERTY ()
217
- TObjectPtr<UNakamaSession > UserSession;
217
+ TObjectPtr<USatoriSession > UserSession;
218
218
219
219
UPROPERTY (BlueprintAssignable)
220
220
FOnSatoriListIdentityProperties OnSuccess;
@@ -229,7 +229,7 @@ class SATORIBLUEPRINTS_API USatoriClientListIdentityProperties : public UBluepri
229
229
* @param Client The Client to use.
230
230
*/
231
231
UFUNCTION (BlueprintCallable, Category = " Satori|Identity" , meta = (BlueprintInternalUseOnly = " true" ))
232
- static USatoriClientListIdentityProperties* ListIdentityProperties (USatoriClient* Client, UNakamaSession * Session);
232
+ static USatoriClientListIdentityProperties* ListIdentityProperties (USatoriClient* Client, USatoriSession * Session);
233
233
234
234
virtual void Activate () override ;
235
235
};
@@ -250,7 +250,7 @@ class SATORIBLUEPRINTS_API USatoriClientUpdateProperties : public UBlueprintAsyn
250
250
TObjectPtr<USatoriClient> SatoriClient;
251
251
252
252
UPROPERTY ()
253
- TObjectPtr<UNakamaSession > UserSession;
253
+ TObjectPtr<USatoriSession > UserSession;
254
254
255
255
UPROPERTY (BlueprintAssignable)
256
256
FOnSatoriUpdateProperties OnSuccess;
@@ -268,7 +268,7 @@ class SATORIBLUEPRINTS_API USatoriClientUpdateProperties : public UBlueprintAsyn
268
268
UFUNCTION (BlueprintCallable, Category = " Satori|Identity" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " DefaultProperties,CustomProperties" ))
269
269
static USatoriClientUpdateProperties* UpdateProperties (
270
270
USatoriClient* Client,
271
- UNakamaSession * Session,
271
+ USatoriSession * Session,
272
272
const TMap<FString, FString>& DefaultProperties,
273
273
const TMap<FString, FString>& CustomProperties,
274
274
const bool bRecompute);
@@ -297,7 +297,7 @@ class SATORIBLUEPRINTS_API USatoriClientDeleteIdentity : public UBlueprintAsyncA
297
297
TObjectPtr<USatoriClient> SatoriClient;
298
298
299
299
UPROPERTY ()
300
- TObjectPtr<UNakamaSession > UserSession;
300
+ TObjectPtr<USatoriSession > UserSession;
301
301
302
302
UPROPERTY (BlueprintAssignable)
303
303
FOnSatoriDeleteIdentity OnSuccess;
@@ -312,7 +312,7 @@ class SATORIBLUEPRINTS_API USatoriClientDeleteIdentity : public UBlueprintAsyncA
312
312
* @param Client The Client to use.
313
313
*/
314
314
UFUNCTION (BlueprintCallable, Category = " Satori|Identity" , meta = (BlueprintInternalUseOnly = " true" ))
315
- static USatoriClientDeleteIdentity* DeleteIdentity (USatoriClient* Client, UNakamaSession * Session);
315
+ static USatoriClientDeleteIdentity* DeleteIdentity (USatoriClient* Client, USatoriSession * Session);
316
316
317
317
virtual void Activate () override ;
318
318
};
@@ -337,7 +337,7 @@ class SATORIBLUEPRINTS_API USatoriClientPostEvent : public UBlueprintAsyncAction
337
337
TObjectPtr<USatoriClient> SatoriClient;
338
338
339
339
UPROPERTY ()
340
- TObjectPtr<UNakamaSession > UserSession;
340
+ TObjectPtr<USatoriSession > UserSession;
341
341
342
342
UPROPERTY (BlueprintAssignable)
343
343
FOnSatoriPostEvent OnSuccess;
@@ -353,7 +353,7 @@ class SATORIBLUEPRINTS_API USatoriClientPostEvent : public UBlueprintAsyncAction
353
353
* @param Client The Client to use.
354
354
*/
355
355
UFUNCTION (BlueprintCallable, Category = " Satori|Events" , meta = (BlueprintInternalUseOnly = " true" ))
356
- static USatoriClientPostEvent* PostEvent (USatoriClient* Client, UNakamaSession * Session, const TArray<FSatoriEvent>& Events);
356
+ static USatoriClientPostEvent* PostEvent (USatoriClient* Client, USatoriSession * Session, const TArray<FSatoriEvent>& Events);
357
357
358
358
virtual void Activate () override ;
359
359
@@ -377,7 +377,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetExperiments : public UBlueprintAsyncA
377
377
TObjectPtr<USatoriClient> SatoriClient;
378
378
379
379
UPROPERTY ()
380
- TObjectPtr<UNakamaSession > UserSession;
380
+ TObjectPtr<USatoriSession > UserSession;
381
381
382
382
UPROPERTY (BlueprintAssignable)
383
383
FOnSatoriGetExperiments OnSuccess;
@@ -393,7 +393,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetExperiments : public UBlueprintAsyncA
393
393
* @param Client The Client to use.
394
394
*/
395
395
UFUNCTION (BlueprintCallable, Category = " Satori|Experiments" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " Names" ))
396
- static USatoriClientGetExperiments* GetExperiments (USatoriClient* Client, UNakamaSession * Session, const TArray<FString>& Names);
396
+ static USatoriClientGetExperiments* GetExperiments (USatoriClient* Client, USatoriSession * Session, const TArray<FString>& Names);
397
397
398
398
virtual void Activate () override ;
399
399
@@ -417,7 +417,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetFlags : public UBlueprintAsyncActionB
417
417
TObjectPtr<USatoriClient> SatoriClient;
418
418
419
419
UPROPERTY ()
420
- TObjectPtr<UNakamaSession > UserSession;
420
+ TObjectPtr<USatoriSession > UserSession;
421
421
422
422
UPROPERTY (BlueprintAssignable)
423
423
FOnSatoriGetFlags OnSuccess;
@@ -433,7 +433,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetFlags : public UBlueprintAsyncActionB
433
433
* @param Client The Client to use.
434
434
*/
435
435
UFUNCTION (BlueprintCallable, Category = " Satori|Flags" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " Names" ))
436
- static USatoriClientGetFlags* GetFlags (USatoriClient* Client, UNakamaSession * Session, const TArray<FString>& Names);
436
+ static USatoriClientGetFlags* GetFlags (USatoriClient* Client, USatoriSession * Session, const TArray<FString>& Names);
437
437
438
438
virtual void Activate () override ;
439
439
@@ -457,7 +457,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetFlagOverrides : public UBlueprintAsyn
457
457
TObjectPtr<USatoriClient> SatoriClient;
458
458
459
459
UPROPERTY ()
460
- TObjectPtr<UNakamaSession > UserSession;
460
+ TObjectPtr<USatoriSession > UserSession;
461
461
462
462
UPROPERTY (BlueprintAssignable)
463
463
FOnSatoriGetFlagOverrides OnSuccess;
@@ -473,7 +473,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetFlagOverrides : public UBlueprintAsyn
473
473
* @param Client The Client to use.
474
474
*/
475
475
UFUNCTION (BlueprintCallable, Category = " Satori|Flags" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " Names" ))
476
- static USatoriClientGetFlagOverrides* GetFlagOverrides (USatoriClient* Client, UNakamaSession * Session, const TArray<FString>& Names);
476
+ static USatoriClientGetFlagOverrides* GetFlagOverrides (USatoriClient* Client, USatoriSession * Session, const TArray<FString>& Names);
477
477
478
478
virtual void Activate () override ;
479
479
@@ -497,7 +497,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetLiveEvents : public UBlueprintAsyncAc
497
497
TObjectPtr<USatoriClient> SatoriClient;
498
498
499
499
UPROPERTY ()
500
- TObjectPtr<UNakamaSession > UserSession;
500
+ TObjectPtr<USatoriSession > UserSession;
501
501
502
502
UPROPERTY (BlueprintAssignable)
503
503
FOnSatoriGetLiveEvents OnSuccess;
@@ -513,7 +513,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetLiveEvents : public UBlueprintAsyncAc
513
513
* @param Client The Client to use.
514
514
*/
515
515
UFUNCTION (BlueprintCallable, Category = " Satori|LiveEvents" , meta = (BlueprintInternalUseOnly = " true" , AutoCreateRefTerm = " LiveEventNames" ))
516
- static USatoriClientGetLiveEvents* GetLiveEvents (USatoriClient* Client, UNakamaSession * Session, const TArray<FString>& LiveEventNames);
516
+ static USatoriClientGetLiveEvents* GetLiveEvents (USatoriClient* Client, USatoriSession * Session, const TArray<FString>& LiveEventNames);
517
517
518
518
virtual void Activate () override ;
519
519
@@ -537,7 +537,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetMessages : public UBlueprintAsyncActi
537
537
TObjectPtr<USatoriClient> SatoriClient;
538
538
539
539
UPROPERTY ()
540
- TObjectPtr<UNakamaSession > UserSession;
540
+ TObjectPtr<USatoriSession > UserSession;
541
541
542
542
UPROPERTY (BlueprintAssignable)
543
543
FOnSatoriGetMessages OnSuccess;
@@ -555,7 +555,7 @@ class SATORIBLUEPRINTS_API USatoriClientGetMessages : public UBlueprintAsyncActi
555
555
UFUNCTION (BlueprintCallable, Category = " Satori|Messages" , meta = (BlueprintInternalUseOnly = " true" ))
556
556
static USatoriClientGetMessages* GetMessages (
557
557
USatoriClient* Client,
558
- UNakamaSession * Session,
558
+ USatoriSession * Session,
559
559
int32 Limit,
560
560
bool Forward,
561
561
const FString& Cursor);
@@ -584,7 +584,7 @@ class SATORIBLUEPRINTS_API USatoriClientUpdateMessage : public UBlueprintAsyncAc
584
584
TObjectPtr<USatoriClient> SatoriClient;
585
585
586
586
UPROPERTY ()
587
- TObjectPtr<UNakamaSession > UserSession;
587
+ TObjectPtr<USatoriSession > UserSession;
588
588
589
589
UPROPERTY (BlueprintAssignable)
590
590
FOnSatoriUpdateMessage OnSuccess;
@@ -602,7 +602,7 @@ class SATORIBLUEPRINTS_API USatoriClientUpdateMessage : public UBlueprintAsyncAc
602
602
UFUNCTION (BlueprintCallable, Category = " Satori|Messages" , meta = (BlueprintInternalUseOnly = " true" ))
603
603
static USatoriClientUpdateMessage* UpdateMessage (
604
604
USatoriClient* Client,
605
- UNakamaSession * Session,
605
+ USatoriSession * Session,
606
606
const FString& MessageId,
607
607
const FDateTime ReadTime,
608
608
const FDateTime ConsumeTime);
@@ -631,7 +631,7 @@ class SATORIBLUEPRINTS_API USatoriClientDeleteMessage : public UBlueprintAsyncAc
631
631
TObjectPtr<USatoriClient> SatoriClient;
632
632
633
633
UPROPERTY ()
634
- TObjectPtr<UNakamaSession > UserSession;
634
+ TObjectPtr<USatoriSession > UserSession;
635
635
636
636
UPROPERTY (BlueprintAssignable)
637
637
FOnSatoriDeleteMessage OnSuccess;
@@ -647,7 +647,7 @@ class SATORIBLUEPRINTS_API USatoriClientDeleteMessage : public UBlueprintAsyncAc
647
647
* @param Client The Client to use.
648
648
*/
649
649
UFUNCTION (BlueprintCallable, Category = " Satori|Messages" , meta = (BlueprintInternalUseOnly = " true" ))
650
- static USatoriClientDeleteMessage* DeleteMessage (USatoriClient* Client, UNakamaSession * Session, const FString& MessageId);
650
+ static USatoriClientDeleteMessage* DeleteMessage (USatoriClient* Client, USatoriSession * Session, const FString& MessageId);
651
651
652
652
virtual void Activate () override ;
653
653
0 commit comments