package Ġcom . learn . az . room booking . ui . dashboard Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ Ċ class ĠDashboard ViewModel : ĠViewModel () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġ_ event Navigate ToAdd Room Ġ= ĠMutable LiveData ( false ) ĊĠĠĠ Ġval Ġevent Navigate ToAdd Room : ĠLive Data < Boolean > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ event Navigate ToAdd Room ĊĊĠĠĠ Ġprivate Ġval Ġ_ event Navigate To Room List Ġ= ĠMutable LiveData ( false ) ĊĠĠĠ Ġval Ġevent Navigate To Room List : ĠLive Data < Boolean > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ event Navigate To Room List ĊĊĠĠĠ Ġprivate Ġval Ġ_ event Navigate To Search Room Ġ= ĠMutable LiveData ( false ) ĊĠĠĠ Ġval Ġevent Navigate To Search Room : ĠLive Data < Boolean > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ event Navigate To Search Room ĊĊĠĠĠ Ġprivate Ġval Ġ_ event Navigate To Login Ġ= ĠMutable LiveData ( false ) ĊĠĠĠ Ġval Ġevent Navigate To Login : ĠLive Data < Boolean > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ event Navigate To Login ĊĊĠĠĠ Ġfun Ġnavigate To Room List (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Room List . value Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġfun Ġnavigate To Room List Complete (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Room List . value Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnavigate To Search Room (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Search Room . value Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġfun Ġnavigate To Search Room Complete (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Search Room . value Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnavigate ToAdd Room (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate ToAdd Room . value Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġfun Ġnavigate ToAdd Room Complete (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate ToAdd Room . value Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnavigate To Login (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Login . value Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġfun Ġnavigate To Login Complete (){ ĊĠĠĠĠĠĠĠ Ġ_ event Navigate To Login . value Ġ= Ġfalse ĊĠĠĠ Ġ} Ċ Ċ }