Skip to content

Commit f2c5ea2

Browse files
committed
paging objects should not be subtypes of List
1 parent 92b6d15 commit f2c5ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/models/PagingObjects.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import com.adamratzman.spotify.http.SpotifyEndpoint
66
import com.adamratzman.spotify.models.serialization.toCursorBasedPagingObject
77
import com.adamratzman.spotify.models.serialization.toPagingObject
88
import com.adamratzman.spotify.utils.runBlocking
9-
import kotlin.reflect.KClass
109
import kotlinx.coroutines.Dispatchers
1110
import kotlinx.coroutines.ExperimentalCoroutinesApi
1211
import kotlinx.coroutines.flow.Flow
@@ -18,6 +17,7 @@ import kotlinx.coroutines.flow.toList
1817
import kotlinx.serialization.SerialName
1918
import kotlinx.serialization.Serializable
2019
import kotlinx.serialization.Transient
20+
import kotlin.reflect.KClass
2121

2222
/*
2323
Types used in PagingObjects and CursorBasedPagingObjects:
@@ -209,7 +209,7 @@ abstract class AbstractPagingObject<T : Any>(
209209
@Transient open val offset: Int = 0,
210210
@Transient open val previous: String? = null,
211211
@Transient open val total: Int = -1
212-
) : List<T> by items {
212+
) {
213213
@Transient
214214
internal var endpoint: SpotifyEndpoint? = null
215215

0 commit comments

Comments
 (0)