forked from PoolC/Mincho
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add notification summary response that includes list of notific…
…ation responses and number of unread notifications
- Loading branch information
Showing
4 changed files
with
41 additions
and
33 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
18 changes: 17 additions & 1 deletion
18
src/main/java/org/poolc/api/notification/dto/NotificationSummaryResponse.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,2 +1,18 @@ | ||
package org.poolc.api.notification.dto;public class NotificationSummaryResponse { | ||
package org.poolc.api.notification.dto; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public class NotificationSummaryResponse { | ||
private long unreadCount; | ||
private List<NotificationResponse> responses; | ||
|
||
public static NotificationSummaryResponse of(long unreadCount, List<NotificationResponse> responses) { | ||
NotificationSummaryResponse response = new NotificationSummaryResponse(); | ||
response.responses = responses; | ||
response.unreadCount = unreadCount; | ||
return response; | ||
} | ||
} |
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