팔로잉 채널 전체보기 페이지 추가
This commit is contained in:
@@ -26,8 +26,10 @@ import kr.co.vividnext.sodalive.common.Constants
|
||||
import kr.co.vividnext.sodalive.common.LoadingDialog
|
||||
import kr.co.vividnext.sodalive.common.SharedPreferenceManager
|
||||
import kr.co.vividnext.sodalive.databinding.FragmentLiveBinding
|
||||
import kr.co.vividnext.sodalive.explorer.profile.UserProfileActivity
|
||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||
import kr.co.vividnext.sodalive.extensions.moneyFormat
|
||||
import kr.co.vividnext.sodalive.following.FollowingCreatorActivity
|
||||
import kr.co.vividnext.sodalive.live.event_banner.EventBannerAdapter
|
||||
import kr.co.vividnext.sodalive.live.now.LiveNowAdapter
|
||||
import kr.co.vividnext.sodalive.live.recommend.RecommendLiveAdapter
|
||||
@@ -195,8 +197,16 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
|
||||
private fun setupRecommendChannel() {
|
||||
liveRecommendChannelAdapter = LiveRecommendChannelAdapter(
|
||||
onClick = {},
|
||||
onClickMore = {}
|
||||
onClick = {
|
||||
startActivity(
|
||||
Intent(requireContext(), UserProfileActivity::class.java).apply {
|
||||
putExtra(Constants.EXTRA_USER_ID, it)
|
||||
}
|
||||
)
|
||||
},
|
||||
onClickMore = {
|
||||
startActivity(Intent(requireContext(), FollowingCreatorActivity::class.java))
|
||||
}
|
||||
)
|
||||
|
||||
binding.layoutRecommendChannel.rvRecommendChannel.layoutManager = LinearLayoutManager(
|
||||
|
@@ -3,9 +3,11 @@ package kr.co.vividnext.sodalive.live.recommend
|
||||
import io.reactivex.rxjava3.core.Flowable
|
||||
import io.reactivex.rxjava3.core.Single
|
||||
import kr.co.vividnext.sodalive.common.ApiResponse
|
||||
import kr.co.vividnext.sodalive.following.GetCreatorFollowingAllListResponse
|
||||
import kr.co.vividnext.sodalive.live.recommend_channel.GetRecommendChannelResponse
|
||||
import retrofit2.http.GET
|
||||
import retrofit2.http.Header
|
||||
import retrofit2.http.Query
|
||||
|
||||
interface LiveRecommendApi {
|
||||
@GET("/live/recommend")
|
||||
@@ -22,4 +24,11 @@ interface LiveRecommendApi {
|
||||
fun getFollowingChannelList(
|
||||
@Header("Authorization") authHeader: String
|
||||
): Single<ApiResponse<List<GetRecommendChannelResponse>>>
|
||||
|
||||
@GET("/live/recommend/following/channel/all/list")
|
||||
fun getCreatorFollowingAllList(
|
||||
@Query("page") page: Int,
|
||||
@Query("size") size: Int,
|
||||
@Header("Authorization") authHeader: String
|
||||
): Single<ApiResponse<GetCreatorFollowingAllListResponse>>
|
||||
}
|
||||
|
Reference in New Issue
Block a user