mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 20:17:02 +05:30
app: remove unnecessary constructor qualifications
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
94afe3c15f
commit
2ab4001a43
3 changed files with 3 additions and 6 deletions
|
@ -5,8 +5,7 @@ import androidx.paging.PagingState
|
||||||
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
||||||
import dev.msfjarvis.lobsters.model.LobstersPost
|
import dev.msfjarvis.lobsters.model.LobstersPost
|
||||||
|
|
||||||
class HottestPostsPagingSource
|
class HottestPostsPagingSource(
|
||||||
constructor(
|
|
||||||
private val lobstersRepository: LobstersRepository,
|
private val lobstersRepository: LobstersRepository,
|
||||||
) : PagingSource<Int, LobstersPost>() {
|
) : PagingSource<Int, LobstersPost>() {
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,7 @@ import androidx.paging.PagingState
|
||||||
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
||||||
import dev.msfjarvis.lobsters.model.LobstersPost
|
import dev.msfjarvis.lobsters.model.LobstersPost
|
||||||
|
|
||||||
class NewestPostsPagingSource
|
class NewestPostsPagingSource(
|
||||||
constructor(
|
|
||||||
private val lobstersRepository: LobstersRepository,
|
private val lobstersRepository: LobstersRepository,
|
||||||
) : PagingSource<Int, LobstersPost>() {
|
) : PagingSource<Int, LobstersPost>() {
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.asStateFlow
|
import kotlinx.coroutines.flow.asStateFlow
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
|
|
||||||
class LobstersRepository
|
class LobstersRepository(
|
||||||
constructor(
|
|
||||||
private val lobstersApi: LobstersApi,
|
private val lobstersApi: LobstersApi,
|
||||||
private val lobstersDatabase: LobstersDatabase,
|
private val lobstersDatabase: LobstersDatabase,
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue