-
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.
- Loading branch information
1 parent
a485903
commit f084eb3
Showing
3 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
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
9 changes: 4 additions & 5 deletions
9
src/main/java/umc/th/juinjang/external/discord/dto/DiscordAlert.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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package umc.th.juinjang.external.discord.dto; | ||
|
||
public record DiscordAlert( | ||
String content | ||
) { | ||
import umc.th.juinjang.model.entity.enums.MemberProvider; | ||
|
||
public static DiscordAlert createAlert(String message) { | ||
return new DiscordAlert(message); | ||
public record DiscordAlert(String content) { | ||
public static DiscordAlert createAlert(Long id, MemberProvider memberProvider, String nickname) { | ||
return new DiscordAlert("주인장에 " +memberProvider+" "+id+"번째 유저 < "+nickname+" >님이 생겼어요!"); | ||
} | ||
} |
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