diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmEvent.kt b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmEvent.kt index 51c69c77..537d3227 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmEvent.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmEvent.kt @@ -25,7 +25,8 @@ enum class FcmDeepLinkValue(val value: String) { SERIES("series"), AUDITION("audition"), COMMUNITY("community"), - CHAT("chat") + CHAT("chat"), + GIFT_DETAIL("gift-detail") } class FcmEvent( @@ -50,7 +51,7 @@ class FcmEvent( val creatorId: Long? = null, val auditionId: Long? = null, val deepLinkValue: FcmDeepLinkValue? = null, - val deepLinkId: Long? = null, + val deepLinkId: Any? = null, val deepLinkCommentPostId: Long? = null, val commentParentId: Long? = null, val myMemberId: Long? = null, diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmService.kt index cd02bdce..e0ba0bda 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmService.kt @@ -32,7 +32,7 @@ class FcmService( creatorId: Long? = null, auditionId: Long? = null, deepLinkValue: FcmDeepLinkValue? = null, - deepLinkId: Long? = null, + deepLinkId: Any? = null, deepLinkCommentPostId: Long? = null, chatType: String? = null ) { @@ -118,7 +118,7 @@ class FcmService( private fun createDeepLink( deepLinkValue: FcmDeepLinkValue?, - deepLinkId: Long?, + deepLinkId: Any?, deepLinkCommentPostId: Long? ): String? { return buildDeepLink(serverEnv, deepLinkValue, deepLinkId, deepLinkCommentPostId) @@ -194,7 +194,7 @@ class FcmService( fun buildDeepLink( serverEnv: String, deepLinkValue: FcmDeepLinkValue?, - deepLinkId: Long?, + deepLinkId: Any?, deepLinkCommentPostId: Long? = null ): String? { if (deepLinkValue == null || deepLinkId == null) { @@ -222,7 +222,7 @@ class FcmService( creatorId: Long? = null, auditionId: Long? = null, deepLinkValue: FcmDeepLinkValue? = null, - deepLinkId: Long? = null, + deepLinkId: Any? = null, deepLinkCommentPostId: Long? = null, deepLink: String? = null, chatType: String? = null diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/notification/PushNotificationCategory.kt b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/notification/PushNotificationCategory.kt index 72b1a4b0..64deded3 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/notification/PushNotificationCategory.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/notification/PushNotificationCategory.kt @@ -6,6 +6,7 @@ enum class PushNotificationCategory(val code: String) { COMMUNITY("community"), MESSAGE("message"), AUDITION("audition"), + GIFT("gift"), SYSTEM("system"); companion object {