6#include "CoreMinimal.h"
7#include "UObject/NoExportTypes.h"
8#include "PPF_Platform.h"
9#include "OnlineSubsystemPicoNames.h"
10#include "OnlineSubsystemPico.h"
12#include "Pico_User.generated.h"
16DECLARE_LOG_CATEGORY_EXTERN(PicoUser, Log, All);
23DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetLoggedInUserFriendsAndRooms,
bool, bIsError,
const FString&, ErrorMessage, UPico_UserAndRoomArray*, UserAndRoomArray);
24DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetNextUserAndRoomArrayPage,
bool, bIsError,
const FString&, ErrorMessage, UPico_UserAndRoomArray*, UserAndRoomArray);
25DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetLoggedInUserFriends,
bool, bIsError,
const FString&, ErrorMessage, UPico_UserArray*, UserArray);
26DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetNextUserPage,
bool, bIsError,
const FString&, ErrorMessage, UPico_UserArray*, UserArray);
27DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetLoginUser,
bool, bIsError,
const FString&, ErrorMessage, UPico_User*, User);
28DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetUserInfo,
bool, bIsError,
const FString&, ErrorMessage, UPico_User*, User);
29DECLARE_DYNAMIC_DELEGATE_ThreeParams(FGetPermissionResult,
bool, bIsError,
const FString&, ErrorMessage, UPico_PermissionResult*, PermissionResult);
52 FGetLoginUser GetLoginUserDelegate;
53 FGetLoggedInUserFriendsAndRooms GetLoggedInUserFriendsAndRoomsDelegate;
54 FGetNextUserAndRoomArrayPage GetNextUserAndRoomArrayPageDelegate;
55 FGetLoggedInUserFriends GetLoggedInUserFriendsDelegate;
56 FGetNextUserPage GetNextUserFriendsPageDelegate;
57 FGetUserInfo GetUserInfoDelegate;
58 FGetPermissionResult GetAuthorizePermissionsDelegate;;
59 FGetPermissionResult RequestUserPermissionsDelegate;
69 bool GetLoginUser(FGetLoginUser InGetLoginUserDelegate);
80 bool GetUserInfo(
const FString& UserId, FGetUserInfo InGetUserInfoDelegate);
90 bool GetLoggedInUserAndRoom(FGetLoggedInUserFriendsAndRooms OnGetLoggedInuserFriendsAndRoomsCallback);
101 bool GetNextUserAndRoomArrayPage(UPico_UserAndRoomArray* InUserAndRoomArray, FGetNextUserAndRoomArrayPage OnGetNextUserAndRoomArrayPageCallback);
111 bool GetUserFriends(FGetLoggedInUserFriends OnGetLoggedInUserFriendsCallback);
122 bool GetNextUserPage(UPico_UserArray* InUserArray, FGetNextUserPage OnGetNextUserPageCallback);
134 bool GetAuthorizePermissions(FGetPermissionResult OnGetPermissionResultCallback);
151 bool RequestUserPermissions(TArray<FString> Permissions, FGetPermissionResult OnGetPermissionResultCallback);
185 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
186 static void PicoGetLoggedInUserAndRoom(UObject* WorldContextObject, FGetLoggedInUserFriendsAndRooms InGetLoggedInuserFriendsAndRoomsCallback);
198 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
199 static void PicoGetNextUserAndRoomArrayPage(UObject* WorldContextObject, UPico_UserAndRoomArray* InUserAndRoomArray, FGetNextUserAndRoomArrayPage InGetNextUserAndRoomArrayPageCallback);
211 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
212 static void PicoGetUserFriends(UObject* WorldContextObject, FGetLoggedInUserFriends InGetLoggedInUserFriendsDelegate);
224 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
225 static void PicoGetNextUserPage(UObject* WorldContextObject, UPico_UserArray* InUserArray, FGetNextUserPage InGetNextUserPageDelegate);
236 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
237 static bool GetLoginUser(UObject* WorldContextObject, FGetLoginUser InGetLoginUserDelegate);
249 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
250 static bool GetPicoUserInfo(UObject* WorldContextObject,
const FString& UserId, FGetUserInfo InGetUserInfoDelegate);
263 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
264 static bool GetAuthorizePermissions(UObject* WorldContextObject, FGetPermissionResult OnGetPermissionResultCallback);
283 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|User")
284 static bool RequestUserPermissions(UObject* WorldContextObject, TArray<FString> Permissions, FGetPermissionResult OnGetPermissionResultCallback);
292class ONLINESUBSYSTEMPICO_API UPico_User :
public UObject
296 void InitParams(ppfUser* ppfUserHandle);
299 FString DisplayName = FString();
300 FString ImageUrl = FString();
301 FString ID = FString();
302 FString InviteToken = FString();
303 FString SmallImageUrl = FString();
304 FString PresencePackage = FString();
305 EUserPresenceStatus UserPresenceStatus = EUserPresenceStatus::Unknow;
306 EUserGender UserGender = EUserGender::Unknow;
307 FString Presence = FString();
308 FString PresenceDeeplinkMessage = FString();
309 FString PresenceDestinationApiName = FString();
310 FString PresenceLobbySessionId = FString();
311 FString PresenceMatchSessionId = FString();
312 FString PresenceExtra = FString();
313 FString StoreRegion = FString();
317 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
318 FString GetDisplayName();
320 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
321 FString GetImageURL();
323 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
326 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
327 FString GetInviteToken();
329 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
330 FString GetSmallImageUrl();
332 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
333 FString GetPresencePackage();
335 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
336 EUserPresenceStatus GetUserPresenceStatus();
338 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
339 EUserGender GetGender();
341 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
342 FString GetPresence();
344 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
345 FString GetPresenceDeeplinkMessage();
347 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
348 FString GetPresenceDestinationApiName();
350 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
351 FString GetPresenceLobbySessionId();
353 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
354 FString GetPresenceMatchSessionId();
356 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
357 FString GetPresenceExtra();
359 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User")
360 FString GetStoreRegion();
364class ONLINESUBSYSTEMPICO_API UPico_UserArray : public UObject
370 void InitParams(ppfUserArray* InppfUserArrayHandle);
374 TArray<UPico_User*> UserArray;
375 FString NextPageParam;
382 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User Array")
383 UPico_User* GetElement(int32 Index);
385 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User Array")
386 FString GetNextPageParam();
388 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User Array")
391 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User Array")
397class ONLINESUBSYSTEMPICO_API UPico_UserAndRoom : public UObject
403 UPico_Room* Room =
nullptr;
406 UPico_User* User =
nullptr;
408 void InitParams(ppfUserAndRoom* InppfUserAndRoomHandle);
410 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room")
411 UPico_Room* GetRoom();
413 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room")
414 UPico_User* GetUser();
418class ONLINESUBSYSTEMPICO_API UPico_UserAndRoomArray : public UObject
425 TArray<UPico_UserAndRoom*> UserAndRoomArray;
426 FString NextPageParam = FString();
430 void InitParams(ppfUserAndRoomArray* InppfUserAndRoomArrayHandle);
432 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room Array")
433 UPico_UserAndRoom* GetElement(int32 Index);
435 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room Array")
436 FString GetNextPageParam();
438 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room Array")
441 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|User And Room Array")
446class ONLINESUBSYSTEMPICO_API UPico_PermissionResult : public UObject
452 TArray<FString> AuthorizedPermissions;
454 FString AccessionToken = FString();
455 FString UserID = FString();
457 void InitParams(ppfPermissionResult* InppfPermissionResultHandle);
459 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|Permission")
460 FString GetAuthorizedPermission(int32 Index);
462 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|Permission")
465 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|Permission")
466 FString GetAccessToken();
468 UFUNCTION(BlueprintPure, Category = "Pico Platform|User|Permission")
OnlineSubsystemPico class inherited from FOnlineSubsystemImpl(Unreal Engine)
Definition: OnlineSubsystemPico.h:44
PicoUserInterface class.
Definition: Pico_User.h:43
OnlinePicoUser Blueprint Function class.
Definition: Pico_User.h:170