4#include "CoreMinimal.h"
5#include "OnlineSubsystemPico.h"
6#include "UObject/NoExportTypes.h"
7#include "PPF_Platform.h"
8#include "Kismet/BlueprintFunctionLibrary.h"
9#include "Pico_Notification.generated.h"
12DECLARE_LOG_CATEGORY_EXTERN(PicoNotification, Log, All);
25DECLARE_DYNAMIC_DELEGATE_FourParams(FNotificationRoomInviteNotifications,
bool, bIsError,
int, ErrorCode,
const FString&, ErrorMessage,
UPico_RoomInviteNotificationArray*, RoomInviteNotificationArray);
26DECLARE_DYNAMIC_DELEGATE_ThreeParams(FNotificationMarkAsRead,
bool, bIsError,
int, ErrorCode,
const FString&, ErrorMessage);
42 FOnlineSubsystemPico& PicoSubsystem;
48 FNotificationRoomInviteNotifications RoomInviteNotificationsDelegate;
49 FNotificationMarkAsRead MarkAsReadDelegate;
75 bool MarkAsRead(
const FString& NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback);
108 UFUNCTION(BlueprintCallable, meta = (WorldContext =
"WorldContextObject"), Category =
"OnlinePico|Notification")
109 static
void GetRoomInviteNotifications(UObject* WorldContextObject,
int PageIdx,
int PageSize, FNotificationRoomInviteNotifications OnRoomInviteNotificationsCallback);
117 UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject"), Category = "OnlinePico|Notification")
118 static
void MarkAsRead(UObject* WorldContextObject, const FString& NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback);
133 FString SenderID = FString();
135 unsigned long long SentTime;
138 void InitParams(ppfRoomInviteNotificationHandle InRoomInviteNotificationHandle);
141 UFUNCTION(BlueprintPure, Category =
"Pico Platform|Notification|Room Invite Notification")
145 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
149 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
150 FString GetSenderID();
153 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
154 FString GetSentTime();
157 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
158 FDateTime GetSentDateTime();
160 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification")
161 FString GetDebugString();
171 TArray<UPico_RoomInviteNotification*> RoomInviteNotificationArray;
176 void InitParams(ppfRoomInviteNotificationArrayHandle InRoomInviteNotificationArrayHandle);
179 UFUNCTION(BlueprintPure, Category =
"Pico Platform|Notification|Room Invite Notification Array")
184 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
187 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
188 int32 GetTotalSize();
191 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
194 UFUNCTION(BlueprintPure, Category = "Pico Platform|Notification|Room Invite Notification Array")
195 FString GetDebugString();
FPicoNotificationInterface class.
Definition: Pico_Notification.h:40
OnlinePicoRoom Blueprint Function class.
Definition: Pico_Notification.h:96
UPico_RoomInviteNotificationArray class.
Definition: Pico_Notification.h:167
UPico_RoomInviteNotification class.
Definition: Pico_Notification.h:124
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...