채널 상세
- 19금 콘텐츠 보기 여부 적용
This commit is contained in:
		| @@ -5,7 +5,6 @@ import io.reactivex.rxjava3.core.Single | ||||
| import kr.co.vividnext.sodalive.common.ApiResponse | ||||
| import kr.co.vividnext.sodalive.explorer.profile.GetCheersResponse | ||||
| 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.PutModifyCheersRequest | ||||
| import kr.co.vividnext.sodalive.explorer.profile.donation.GetDonationAllResponse | ||||
| @@ -40,6 +39,7 @@ interface ExplorerApi { | ||||
|     fun getCreatorProfile( | ||||
|         @Path("id") id: Long, | ||||
|         @Query("timezone") timezone: String, | ||||
|         @Query("isAdultContentVisible") isAdultContentVisible: Boolean, | ||||
|         @Header("Authorization") authHeader: String | ||||
|     ): Single<ApiResponse<GetCreatorProfileResponse>> | ||||
|  | ||||
| @@ -72,12 +72,6 @@ interface ExplorerApi { | ||||
|         @Header("Authorization") authHeader: String | ||||
|     ): 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") | ||||
|     fun getFollowerList( | ||||
|         @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.Single | ||||
| 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.PostCreatorNoticeRequest | ||||
| 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.donation.GetDonationAllResponse | ||||
| @@ -23,6 +23,7 @@ class ExplorerRepository( | ||||
|     fun getCreatorProfile(id: Long, token: String) = api.getCreatorProfile( | ||||
|         id = id, | ||||
|         timezone = TimeZone.getDefault().id, | ||||
|         isAdultContentVisible = SharedPreferenceManager.isAdultContentVisible, | ||||
|         authHeader = token | ||||
|     ) | ||||
|  | ||||
| @@ -63,11 +64,6 @@ class ExplorerRepository( | ||||
|         authHeader = token | ||||
|     ) | ||||
|  | ||||
|     fun writeCreatorNotice(notice: String, token: String) = api.writeCreatorNotice( | ||||
|         request = PostCreatorNoticeRequest(notice), | ||||
|         authHeader = token | ||||
|     ) | ||||
|  | ||||
|     fun getFollowerList( | ||||
|         userId: Long, | ||||
|         page: Int, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user