update repos to use new reverse method

This commit is contained in:
2020-10-22 15:47:28 +06:00
parent 4972cc9daa
commit 418af7874d
3 changed files with 33 additions and 32 deletions

View File

@@ -27,3 +27,8 @@ fun Pagination.reverse(objectsCount: Long): SimplePagination {
}.toInt()
return PaginationByIndexes(firstIndex, lastIndex)
}
/**
* Shortcut for [reverse]
*/
fun Pagination.reverse(objectsCount: Int) = reverse(objectsCount.toLong())