크리에이터 채널 - 팔로우와 알림설정

- 팔로잉 상태에서 알림 켜기/끄기 상태 추가
This commit is contained in:
2024-09-13 16:11:39 +09:00
parent 78323103fd
commit 5063ce815d
15 changed files with 179 additions and 12 deletions

View File

@@ -4,4 +4,8 @@ import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
@Keep
data class CreatorFollowRequestRequest(@SerializedName("creatorId") val creatorId: Long)
data class CreatorFollowRequestRequest(
@SerializedName("creatorId") val creatorId: Long,
@SerializedName("isNotify") val isNotify: Boolean = true,
@SerializedName("isActive") val isActive: Boolean = true
)

View File

@@ -54,9 +54,15 @@ class UserRepository(private val userApi: UserApi) {
fun creatorFollow(
creatorId: Long,
follow: Boolean = true,
notify: Boolean = true,
token: String
) = userApi.creatorFollow(
request = CreatorFollowRequestRequest(creatorId = creatorId),
request = CreatorFollowRequestRequest(
creatorId = creatorId,
isActive = follow,
isNotify = notify
),
authHeader = token
)