Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ public enum GitHubReviewNotificationType {

DM,
SERVER,
NONE,
BOTH;

public boolean isDmNotify() {
return switch (this) {
case DM, BOTH -> true;
case SERVER -> false;
case SERVER, NONE -> false;
};
}

public boolean isServerNotify() {
return switch (this) {
case SERVER, BOTH -> true;
case DM -> false;
case DM, NONE -> false;
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public NotificationChild(GitHubReviewService gitHubReviewService) {
.addChoice("DM", GitHubReviewNotificationType.DM.toString())
.addChoice("SERVER", GitHubReviewNotificationType.SERVER.toString())
.addChoice("BOTH", GitHubReviewNotificationType.BOTH.toString())
.addChoice("NONE", GitHubReviewNotificationType.NONE.toString())
.setRequired(true)
);

Expand Down
Loading