채널 상세

- 19금 콘텐츠 보기 여부 적용
This commit is contained in:
klaus 2025-03-19 23:22:25 +09:00
parent 68a777c8df
commit 506f446b60
2 changed files with 3 additions and 13 deletions

View File

@ -5,7 +5,6 @@ import io.reactivex.rxjava3.core.Single
import kr.co.vividnext.sodalive.common.ApiResponse import kr.co.vividnext.sodalive.common.ApiResponse
import kr.co.vividnext.sodalive.explorer.profile.GetCheersResponse import kr.co.vividnext.sodalive.explorer.profile.GetCheersResponse
import kr.co.vividnext.sodalive.explorer.profile.GetCreatorProfileResponse import kr.co.vividnext.sodalive.explorer.profile.GetCreatorProfileResponse
import kr.co.vividnext.sodalive.explorer.profile.PostCreatorNoticeRequest
import kr.co.vividnext.sodalive.explorer.profile.cheers.PostWriteCheersRequest import kr.co.vividnext.sodalive.explorer.profile.cheers.PostWriteCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.cheers.PutModifyCheersRequest import kr.co.vividnext.sodalive.explorer.profile.cheers.PutModifyCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.donation.GetDonationAllResponse import kr.co.vividnext.sodalive.explorer.profile.donation.GetDonationAllResponse
@ -40,6 +39,7 @@ interface ExplorerApi {
fun getCreatorProfile( fun getCreatorProfile(
@Path("id") id: Long, @Path("id") id: Long,
@Query("timezone") timezone: String, @Query("timezone") timezone: String,
@Query("isAdultContentVisible") isAdultContentVisible: Boolean,
@Header("Authorization") authHeader: String @Header("Authorization") authHeader: String
): Single<ApiResponse<GetCreatorProfileResponse>> ): Single<ApiResponse<GetCreatorProfileResponse>>
@ -72,12 +72,6 @@ interface ExplorerApi {
@Header("Authorization") authHeader: String @Header("Authorization") authHeader: String
): Single<ApiResponse<Any>> ): Single<ApiResponse<Any>>
@POST("/explorer/profile/notice")
fun writeCreatorNotice(
@Body request: PostCreatorNoticeRequest,
@Header("Authorization") authHeader: String
): Single<ApiResponse<Any>>
@GET("/explorer/profile/{id}/follower-list") @GET("/explorer/profile/{id}/follower-list")
fun getFollowerList( fun getFollowerList(
@Path("id") userId: Long, @Path("id") userId: Long,

View File

@ -3,8 +3,8 @@ package kr.co.vividnext.sodalive.explorer
import io.reactivex.rxjava3.core.Flowable import io.reactivex.rxjava3.core.Flowable
import io.reactivex.rxjava3.core.Single import io.reactivex.rxjava3.core.Single
import kr.co.vividnext.sodalive.common.ApiResponse import kr.co.vividnext.sodalive.common.ApiResponse
import kr.co.vividnext.sodalive.common.SharedPreferenceManager
import kr.co.vividnext.sodalive.explorer.profile.GetCheersResponse import kr.co.vividnext.sodalive.explorer.profile.GetCheersResponse
import kr.co.vividnext.sodalive.explorer.profile.PostCreatorNoticeRequest
import kr.co.vividnext.sodalive.explorer.profile.cheers.PostWriteCheersRequest import kr.co.vividnext.sodalive.explorer.profile.cheers.PostWriteCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.cheers.PutModifyCheersRequest import kr.co.vividnext.sodalive.explorer.profile.cheers.PutModifyCheersRequest
import kr.co.vividnext.sodalive.explorer.profile.donation.GetDonationAllResponse import kr.co.vividnext.sodalive.explorer.profile.donation.GetDonationAllResponse
@ -23,6 +23,7 @@ class ExplorerRepository(
fun getCreatorProfile(id: Long, token: String) = api.getCreatorProfile( fun getCreatorProfile(id: Long, token: String) = api.getCreatorProfile(
id = id, id = id,
timezone = TimeZone.getDefault().id, timezone = TimeZone.getDefault().id,
isAdultContentVisible = SharedPreferenceManager.isAdultContentVisible,
authHeader = token authHeader = token
) )
@ -63,11 +64,6 @@ class ExplorerRepository(
authHeader = token authHeader = token
) )
fun writeCreatorNotice(notice: String, token: String) = api.writeCreatorNotice(
request = PostCreatorNoticeRequest(notice),
authHeader = token
)
fun getFollowerList( fun getFollowerList(
userId: Long, userId: Long,
page: Int, page: Int,