package Ġcom . b enden en . example . album list example . screens . main . view model Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . b enden en . example . album list example . models . Album Ċ import Ġcom . b enden en . example . album list example . repository . Saved Album s Live DataProvider Ċ import Ġcom . b enden en . example . album list example . repository . datasource . Resource Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠMain ViewModel Ġ@ Inject Ġconstructor ( private Ġval Ġlive DataProvider : ĠSaved Album s Live DataProvider ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġval Ġalbum s : ĠLive Data < Resource < List < Album >>> Ġ= Ġlive DataProvider . get Saved Album List () Ċ Ċ }