forked from reya/coop-mobile
chore: refactor the internal structure (#33)
Reviewed-on: https://git.reya.su/reya/coop-mobile/pulls/33
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package su.reya.coop.viewmodel
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
import su.reya.coop.repository.ErrorRepository
|
||||
|
||||
abstract class BaseViewModel : ViewModel() {
|
||||
protected fun showError(message: String) {
|
||||
ErrorRepository.showError(message)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user