-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from kakao-tech-campus-2nd-step3/feature/65-no…
…tification-fcm-consistency feat: 알림 table에 저장될 데이터 및 FCM 알림 통일
- Loading branch information
Showing
8 changed files
with
114 additions
and
81 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/main/java/com/potatocake/everymoment/constant/NotificationType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.potatocake.everymoment.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum NotificationType { | ||
|
||
COMMENT("새로운 댓글", "%s님이 회원님의 일기에 댓글을 남겼습니다."), | ||
LIKE("새로운 좋아요", "%s님이 회원님의 일기를 좋아합니다."), | ||
FRIEND_REQUEST("새로운 친구 요청", "%s님이 친구 요청을 보냈습니다."), | ||
FRIEND_ACCEPT("친구 요청 수락", "%s님이 친구 요청을 수락했습니다."), | ||
MOOD_CHECK("새로운 장소", "현재 %s에 머무르고 있어요! 지금 기분은 어떠신가요?"); | ||
|
||
private final String title; | ||
private final String messageFormat; | ||
|
||
public String formatMessage(String... args) { | ||
return String.format(messageFormat, (Object[]) args); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.