4#include "CoreMinimal.h"
5#include "OnlineSubsystemPico.h"
6#include "UObject/NoExportTypes.h"
7#include "PPF_Platform.h"
8#include "Pico_Notification.generated.h"
11DECLARE_LOG_CATEGORY_EXTERN(PicoNotification, Log, All);
24DECLARE_DYNAMIC_DELEGATE_FourParams(FNotificationRoomInviteNotifications,
bool, bIsError,
int, ErrorCode,
const FString&, ErrorMessage,
UPico_RoomInviteNotificationArray*, RoomInviteNotificationArray);
25DECLARE_DYNAMIC_DELEGATE_ThreeParams(FNotificationMarkAsRead,
bool, bIsError,
int, ErrorCode,
const FString&, ErrorMessage);
41 FOnlineSubsystemPico& PicoSubsystem;
47 FNotificationRoomInviteNotifications RoomInviteNotificationsDelegate;
48 FNotificationMarkAsRead MarkAsReadDelegate;
74 bool MarkAsRead(
const FString& NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback);
107 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|Notification")
108 static
void GetRoomInviteNotifications(UObject* WorldContextObject,
int PageIdx,
int PageSize, FNotificationRoomInviteNotifications OnRoomInviteNotificationsCallback);
116 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|Notification")
117 static
void MarkAsRead(UObject* WorldContextObject, const FString& NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback);
132 FString SenderID = FString();
134 unsigned long long SentTime;
137 void InitParams(ppfRoomInviteNotificationHandle InRoomInviteNotificationHandle);
140 UFUNCTION(BlueprintPure, Category =
"Pico Platform|Notification|Room Invite Notification")
144 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
148 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
149 FString GetSenderID();
152 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
153 FString GetSentTime();
156 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
157 FDateTime GetSentDateTime();
159 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
160 FString GetDebugString();
170 TArray<UPico_RoomInviteNotification*> RoomInviteNotificationArray;
175 void InitParams(ppfRoomInviteNotificationArrayHandle InRoomInviteNotificationArrayHandle);
178 UFUNCTION(BlueprintPure, Category =
"Pico Platform|Notification|Room Invite Notification Array")
183 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
186 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
187 int32 GetTotalSize();
190 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
193 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
194 FString GetDebugString();
FPicoNotificationInterface class.
Definition: Pico_Notification.h:39
OnlinePicoRoom Blueprint Function class.
Definition: Pico_Notification.h:95
UPico_RoomInviteNotificationArray class.
Definition: Pico_Notification.h:166
UPico_RoomInviteNotification class.
Definition: Pico_Notification.h:123
bool MarkAsRead(const FString &NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback)
Marks a notification as read.
bool GetRoomInviteNotifications(int PageIdx, int PageSize, FNotificationRoomInviteNotifications OnRoomInviteNotificationsCallback)
Gets a list of all pending room invites for your app. For example, notifications that may have been s...