This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dacruzl2.gitmvpkoin.data.source.remote | |
import com.dacruzl2.gitmvpkoin.data.Root | |
import com.dacruzl2.gitmvpkoin.data.source.GithubDataSource | |
import com.dacruzl2.gitmvpkoin.data.source.remote.services.GithubService | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.withContext | |
import java.lang.Exception | |
class IssuesRemoteDataSource(private val remoteSource: GithubService) : GithubDataSource { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dacruzl2.gitmvpkoin.data.source | |
import com.dacruzl2.gitmvpkoin.data.Root | |
class GithubRepository( | |
private val remoteDataSource: GithubDataSource, | |
private val localDataSource: GithubDataSource | |
) : GithubDataSource { | |
internal var cachedItemList: List<Root>? = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dacruzl2.gitmvpkoin.data.source | |
import android.util.Log | |
import com.dacruzl2.gitmvpkoin.data.Root | |
import com.dacruzl2.gitmvpkoin.data.source.local.GithubDao | |
import com.dacruzl2.gitmvpkoin.data.source.remote.services.GithubService | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.withContext | |
class GithubRepository( |