Skip to content

Commit

Permalink
Update notification builder
Browse files Browse the repository at this point in the history
  • Loading branch information
hhdqirui committed Feb 13, 2023
1 parent dd4b597 commit 897f971
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/teammates/storage/sqlentity/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public boolean equals(Object other) {
*/
public static class NotificationBuilder {

private UUID notificationId;
private Instant startTime;
private Instant endTime;
private NotificationStyle style;
Expand All @@ -227,6 +228,11 @@ public static class NotificationBuilder {
private String message;
private boolean shown;

public NotificationBuilder withNotificationId(UUID notificationId) {
this.notificationId = notificationId;
return this;
}

public NotificationBuilder withStartTime(Instant startTime) {
this.startTime = startTime;
return this;
Expand Down

0 comments on commit 897f971

Please sign in to comment.