From 53d72210ec3a679d550b51fad9e19e99c19cad7b Mon Sep 17 00:00:00 2001 From: Sohyun Date: Wed, 22 May 2024 16:22:40 +0900 Subject: [PATCH] =?UTF-8?q?#265=20[FIX]=20:=20ispushalarmaloowed=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/teamdontbe/data/dto/request/RequestProfileEditDto.kt | 1 + .../java/com/teamdontbe/data/dto/response/ResponseLoginDto.kt | 3 +++ .../src/main/java/com/teamdontbe/domain/entity/LoginEntity.kt | 1 + 3 files changed, 5 insertions(+) diff --git a/data/src/main/java/com/teamdontbe/data/dto/request/RequestProfileEditDto.kt b/data/src/main/java/com/teamdontbe/data/dto/request/RequestProfileEditDto.kt index e9f30cb1..3b648bb2 100644 --- a/data/src/main/java/com/teamdontbe/data/dto/request/RequestProfileEditDto.kt +++ b/data/src/main/java/com/teamdontbe/data/dto/request/RequestProfileEditDto.kt @@ -9,4 +9,5 @@ data class RequestProfileEditDto( @SerialName("is_alarm_allowed") val isAlarmAllowed: Boolean?, @SerialName("member_intro") val memberIntro: String, @SerialName("profile_url") val profileUrl: String?, + @SerialName("isPushAlarmAllowed") val isPushAlarmAllowed: Boolean? = null, ) diff --git a/data/src/main/java/com/teamdontbe/data/dto/response/ResponseLoginDto.kt b/data/src/main/java/com/teamdontbe/data/dto/response/ResponseLoginDto.kt index 0cd77609..e4be0ec2 100644 --- a/data/src/main/java/com/teamdontbe/data/dto/response/ResponseLoginDto.kt +++ b/data/src/main/java/com/teamdontbe/data/dto/response/ResponseLoginDto.kt @@ -18,6 +18,8 @@ data class ResponseLoginDto( val memberProfileUrl: String, @SerialName("isNewUser") val isNewUser: Boolean, + @SerialName("isPushAlarmAllowed") + val isPushAlarmAllowed: Boolean?, ) { fun toLoginDataEntity() = LoginEntity( @@ -27,5 +29,6 @@ data class ResponseLoginDto( refreshToken, memberProfileUrl, isNewUser, + isPushAlarmAllowed, ) } diff --git a/domain/src/main/java/com/teamdontbe/domain/entity/LoginEntity.kt b/domain/src/main/java/com/teamdontbe/domain/entity/LoginEntity.kt index b102a316..b75f93eb 100644 --- a/domain/src/main/java/com/teamdontbe/domain/entity/LoginEntity.kt +++ b/domain/src/main/java/com/teamdontbe/domain/entity/LoginEntity.kt @@ -7,4 +7,5 @@ data class LoginEntity( val refreshToken: String, val memberProfileUrl: String, val isNewUser: Boolean, + val isPushAlarmAllowed: Boolean?, )