구매 목록 - 페이징을 추가해 이전 구매목록이 추가로 로딩되도록 수정

This commit is contained in:
klaus 2023-10-31 12:23:12 +09:00
parent 5cdb7426c6
commit 5c293e79cf
1 changed files with 40 additions and 38 deletions

View File

@ -27,9 +27,10 @@ class AudioContentOrderListViewModel(
private var isLast = false private var isLast = false
var page = 1 var page = 1
private val size = 10 private val size = 3
fun getAudioContentOrderList(onFailure: (() -> Unit)? = null) { fun getAudioContentOrderList(onFailure: (() -> Unit)? = null) {
if (_isLoading.value == false) {
_isLoading.value = true _isLoading.value = true
compositeDisposable.add( compositeDisposable.add(
repository.getAudioContentOrderList( repository.getAudioContentOrderList(
@ -74,4 +75,5 @@ class AudioContentOrderListViewModel(
) )
) )
} }
}
} }