Skip to content

Instantly share code, notes, and snippets.

@lagoJin
Last active December 28, 2019 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lagoJin/d11d740f71a5fe2dead4333193f86f94 to your computer and use it in GitHub Desktop.
Save lagoJin/d11d740f71a5fe2dead4333193f86f94 to your computer and use it in GitHub Desktop.
class GithubRepositoryImpl constructor(
private val githubService: GithubService,
private val githubMapper: GithubMapper
) : GithubRepository {
override suspend fun getGithubs(
userId: String,
page: Int,
perPage: Int
): List<DomainEntityGithub> {
return githubMapper.mapFromEntity(
githubService.getSearchUsers(userId, page, perPage)
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment