Skip to content

Commit

Permalink
refactor: add field to response
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Nov 27, 2024
1 parent 74aac65 commit 08d5dc7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
public class ObjectionAlarmResponse {

private Long objectionId;
private Long workoutConfirmationId;
private String targetWorkerNickname;
private Boolean voteCompletion;
private LocalDateTime createdAt;

public ObjectionAlarmResponse(Objection objection, String targetWorkerNickname, Boolean voteCompletion) {
this.objectionId = objection.getId();
this.workoutConfirmationId = objection.getWorkoutConfirmation().getId();
this.targetWorkerNickname = targetWorkerNickname;
this.voteCompletion = voteCompletion;
this.createdAt = objection.getCreatedAt();
Expand Down

0 comments on commit 08d5dc7

Please sign in to comment.