From 6b573d77dd7da4ccbb48b9f0b975053fc2a04488 Mon Sep 17 00:00:00 2001 From: Ji-Ha Date: Tue, 5 Jul 2022 23:20:52 +0900 Subject: [PATCH] =?UTF-8?q?[#132]=20refactor(Bookmark):=20remindOff=20?= =?UTF-8?q?=EB=A9=94=EC=86=8C=EB=93=9C=20=ED=95=98=EB=82=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/com/yapp/web2/domain/bookmark/entity/Bookmark.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/com/yapp/web2/domain/bookmark/entity/Bookmark.kt b/src/main/kotlin/com/yapp/web2/domain/bookmark/entity/Bookmark.kt index 1b0e9d40..a08592bd 100644 --- a/src/main/kotlin/com/yapp/web2/domain/bookmark/entity/Bookmark.kt +++ b/src/main/kotlin/com/yapp/web2/domain/bookmark/entity/Bookmark.kt @@ -119,6 +119,10 @@ class Bookmark( remindList.remove(Remind(userId)) } + fun remindOff() { + remindList = mutableListOf() + } + fun remindOn(remind: Remind) { remindList.add(remind) }