크리에이터 채널 - 팔로우와 알림설정
- 팔로잉 상태에서 알림 켜기/끄기 상태 추가
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user