add several things into pagination functionality

This commit is contained in:
InsanusMokrassar 2019-11-23 22:45:50 +06:00
parent 1dfc225133
commit f086a71e01

View File

@ -2,6 +2,16 @@ package com.insanusmokrassar.postssystem.core.utils.pagination
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
data class SimplePagination(
override val page: Int,