void SetNotificationHandler() {
Backend.Notification.OnAuthorize = (bool isSuccess, string reason) => {
if (isSuccess) {
Debug.Log("실시간 알림 서버 접속에 성공했습니다.");
}
else {
Debug.LogWarning("실시간 알림 서버 접속에 실패했습니다.\n" + reason );
}
};
// 추가. 실시간 알림 우편 발송 핸들러
Backend.Notification.OnNewPostCreated = (BackEnd.Socketio.PostRepeatType postRepeatType, string title, string content, string author) => {
Debug.Log(
$"우편이 발송되었습니다.\n" +
$"| 우편 반복 타입 : {postRepeatType}\n" +
$"| 우편 제목 : {title}\n" +
$"| 우편 내용 : {content}\n" +
$"| 우편 발송인 : {author}\n");
};
}