when (repoResource?.status) {
Status.LOADING -> {
progressbar.visibility = View.VISIBLE
}
Status.ERROR -> {
progressbar.visibility = View.GONE
showErrorDialog(errorMessage)
}
Status.SUCCESS -> {
progressbar.visibility = View.GONE
setRepositoryList(data)
}
}
})