parent
68a777c8df
commit
506f446b60
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue