package Ġdev . ke ader . corre io str acker . view . authors Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġdagger . h ilt . android . lifecycle . H ilt ViewModel Ċ import Ġdev . ke ader . corre io str acker . network . Github Author Ċ import Ġdev . ke ader . corre io str acker . repository . Authors Repository Ċ import Ġkotlinx . coroutines . launch Ċ import Ġjavax . inject . Inject Ċ Ċ @ H ilt ViewModel Ċ class ĠAuthors ViewModel Ġ@ Inject Ġconstructor ( private Ġval Ġrepository : ĠAuthors Repository ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġ_ authors Ġ= ĠMutable LiveData < List < Github Author >>( emptyList ()) ĊĠĠĠ Ġval Ġauthors : ĠLive Data < List < Github Author >> ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ authors ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġfetch Github Authors () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġfetch Github Authors () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ authors . value Ġ= Ġrepository . get Authors () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ