package Ġcom . dic od ing . em ergency app . ui . sos Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . dic od ing . em ergency app . data . entity . N er Response Ċ import Ġcom . dic od ing . em ergency app . data . repository . N er Repository Ċ Ċ class ĠN er ViewModel ( private Ġval Ġrepository : ĠN er Repository ): ĠViewModel () Ġ{ ĊĊĠĠĠ Ġfun Ġget Results ( input String : ĠString ): LiveData < N er Response >{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . get Results ( input String ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Fail (): ĠLive Data < Boolean >{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . is Fail () ĊĠĠĠ Ġ} Ċ }