add several things into pagination functionality
This commit is contained in:
parent
1dfc225133
commit
f086a71e01
@ -2,6 +2,16 @@ package com.insanusmokrassar.postssystem.core.utils.pagination
|
|||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
const val defaultSmallPageSize = 2
|
||||||
|
const val defaultMediumPageSize = 5
|
||||||
|
const val defaultLargePageSize = 10
|
||||||
|
const val defaultExtraLargePageSize = 15
|
||||||
|
|
||||||
|
inline fun FirstPagePagination(size: Int = defaultMediumPageSize) = SimplePagination(
|
||||||
|
page = 0,
|
||||||
|
size = defaultMediumPageSize
|
||||||
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class SimplePagination(
|
data class SimplePagination(
|
||||||
override val page: Int,
|
override val page: Int,
|
||||||
|
Loading…
Reference in New Issue
Block a user