package Ġcom . av test app . android . android base . av _ test . core . questions Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . av test app . android . android base . av _ test . models . Question Type With Hash Ċ import Ġcom . av test app . android . android base . av _ test . repository . Question Repository Ċ import Ġcom . av test app . android . android base . base . Base ViewModel Ċ import Ġcom . av test app . android . android base . extensions . Event Ċ import Ġcom . av test app . android . android base . utils . Prefs Utils Ċ import Ġcom . av test app . android . android base . utils . Resource Provider Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠQuestion Dialog ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġval Ġprefs Utils : ĠP refs Utils , ĊĠĠĠ Ġval Ġresource Provider : ĠResource Provider , ĊĠĠĠ Ġprivate Ġval Ġquestion Repository : ĠQuestion Repository Ċ ) Ġ: ĠBase ViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġ_ question Type Pick ed With Hash Ġ= ĠMutable LiveData < Event < Question Type With Hash >>() ĊĊĊĠĠĠ Ġval Ġquestion Type Pick ed With Hash Ġ: ĠLive Data < Event < Question Type With Hash >> ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ question Type Pick ed With Hash ĊĊĠĠĠ Ġfun Ġupdate Question Type ( question Type With Hash : ĠQuestion Type With Hash ){ ĊĠĠĠĠĠĠĠ Ġ_ question Type Pick ed With Hash . value Ġ= ĠEvent ( question Type With Hash ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd All LiveData To Observable s List () Ġ{ ĊĠĠĠĠĠĠĠ Ġobservable s List . addAll ( array ListOf ( question Type Pick ed With Hash ) Ġ) ĊĠĠĠ Ġ} Ċ }