OnNewPostCreated
public OnNewPostCreateNotification OnNewPostCreated;
Parameters
Value | Type | Description |
---|---|---|
postRepeatType | PostRepeatType | Mail type |
title | string | Mail title |
content | string | Mail content |
author | string | Mail sender |
PostRepeatType
enum | Description |
---|---|
repeat | Repeated delivery |
immediately | Immediate delivery |
reservation | Reserved delivery |
Description
This handler is called when mail is sent from BACKND Console's Mail Management.
You can check the type, title, sender, and content of the registered mail at the handler.
Mail may arrive a few minutes after the set hour due to the delay from several pending ones(depending on the number of pending mail).
The following events generate mail delivery:
- Immediate mail delivery
- Reserved mail delivery(at the scheduled time)
- Repeated mail delivery(at the scheduled time)
- Personal mail delivery(to only the set users)
The following events do not generate mail delivery:
- Ranking rewards mail
Example
Backend.Notification.OnNewPostCreated = (PostRepeatType postRepeatType, string title, string content, string author) => {
Debug.Log(
$"[OnNewPostCreated(new mail created)]\n" +
$"| postRepeatType : {postRepeatType}\n" +
$"| title : {title}\n" +
$"| content : {content}\n" +
$"| author : {author}\n"
);
};