package Ġcom . numero . it ube . ui . video Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . switch Map Ċ import Ġcom . numero . it ube . model . Action Ċ import Ġcom . numero . it ube . model . Empty Action Ċ import Ġcom . numero . it ube . model . Playlist List Ċ import Ġcom . numero . it ube . repository . Playlist Repository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠSelect Playlist ViewModel Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġplaylist Repository : ĠPlaylist Repository Ċ ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġaction LiveData : ĠMutable LiveData < Action < Empty Action >> Ġ= ĠMutable LiveData () ĊĠĠĠ Ġval Ġplaylist List LiveData : ĠLive Data < Playlist List > Ġ= Ġaction LiveData . switch Map Ġ{ ĊĠĠĠĠĠĠĠ Ġplaylist Repository . read Playlist List () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġexecute Load Playlist () Ġ{ ĊĠĠĠĠĠĠĠ Ġaction LiveData . value Ġ= ĠAction ( Empty Action ) ĊĠĠĠ Ġ} Ċ }