Skip to content
Merged
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 @@ -6,6 +6,7 @@ import com.ssak3.timeattack.task.domain.Task
import java.time.LocalDateTime

class PushNotification(
val id: Long = 0,
val member: Member,
val task: Task,
val scheduledAt: LocalDateTime,
Expand All @@ -15,6 +16,7 @@ class PushNotification(
) {
fun toEntity() =
PushNotificationEntity(
id = id,
member = member.toEntity(),
task = task.toEntity(),
scheduledAt = scheduledAt,
Expand All @@ -30,6 +32,7 @@ class PushNotification(
companion object {
fun fromEntity(entity: PushNotificationEntity) =
PushNotification(
id = entity.id,
member = Member.fromEntity(entity.member),
task = Task.fromEntity(entity.task),
scheduledAt = entity.scheduledAt,
Expand Down
Loading