Skip to content

Commit

Permalink
fix: 포즈 알림 조회 및 생성 진행시, 활성화 여부를 포함하여 응답을 제공한다
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Sep 23, 2024
1 parent 2761f19 commit 73124c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import com.hero.alignlab.domain.notification.domain.vo.PoseNotificationDuration

data class GetPoseNotificationResponse(
val id: Long,
val isActive: Boolean,
val duration: PoseNotificationDuration,
) {
companion object {
fun from(poseNotification: PoseNotification): GetPoseNotificationResponse {
return GetPoseNotificationResponse(
id = poseNotification.id,
isActive = poseNotification.isActive,
duration = poseNotification.duration
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import com.hero.alignlab.domain.notification.domain.vo.PoseNotificationDuration

data class RegisterPoseNotificationResponse(
val id: Long,
val isActive: Boolean,
val duration: PoseNotificationDuration,
) {
companion object {
fun from(poseNotification: PoseNotification): RegisterPoseNotificationResponse {
return RegisterPoseNotificationResponse(
id = poseNotification.id,
isActive = poseNotification.isActive,
duration = poseNotification.duration
)
}
Expand Down

0 comments on commit 73124c1

Please sign in to comment.