package Ġio . github . gus and rian os . fox for reddit . view models Ċ Ċ import Ġandroidx . h ilt . lifecycle . ViewModel Inject Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġio . github . gus and rian os . fox for reddit . data . models . Data Ċ import Ġio . github . gus and rian os . fox for reddit . data . models . Fl air Ċ import Ġio . github . gus and rian os . fox for reddit . data . models . Mod erators List Ċ import Ġio . github . gus and rian os . fox for reddit . data . models . Rules Bundle Ċ import Ġio . github . gus and rian os . fox for reddit . data . repositories . Sub reddit Repository Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠSub reddit ViewModel Ġ@ ViewModel Inject Ġconstructor ( private Ġval Ġm Sub reddit Repository : ĠSub reddit Repository ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġfun Ġget Sub reddit ( sub reddit Name : ĠString ): ĠLive Data < Data > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . getSub reddit ( sub reddit Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Sub reddit Wiki ( sub reddit Name : ĠString ): ĠLive Data < Data > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . getSub reddit Wiki ( sub reddit Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Sub reddit Rules ( sub reddit Name : ĠString ): ĠLive Data < Rules Bundle > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . getSub reddit Rules ( sub reddit Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Sub reddit Mod erators ( sub reddit Name : ĠString ): ĠLive Data < Mod erators List > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . getSub reddit Mod erators ( sub reddit Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġtoggle Sub scribed ( action : ĠInt , Ġsub reddit Name : ĠString ): ĠLive Data < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . toggle Sub scribed ( action , Ġsub reddit Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Sub reddit Link Fl air ( sub reddit Name : ĠString ): ĠLive Data < List < Fl air >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġm Sub reddit Repository . getSub reddit Link Fl air ( sub reddit Name ) ĊĠĠĠ Ġ} Ċ } Ċ