package Ġt aiwan . no 1 . app . ss fm . features . playlist Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . databinding . Observable Field Ċ import Ġandroid . view . View Ċ import Ġcom . hw ang jr . r xb us . Rx Bus Ċ import Ġt aiwan . no 1 . app . ss fm . R Ċ import Ġt aiwan . no 1 . app . ss fm . features . base . Base ViewModel Ċ import Ġt aiwan . no 1 . app . ss fm . misc . constants . Rx Bus Tag . VIEW MODEL _ CLICK _ ADD _ PLAY LIST Ċ import Ġt aiwan . no 1 . app . ss fm . misc . extension . execute Ċ import Ġt aiwan . no 1 . app . ss fm . models . entities . Playlist Entity Ċ import Ġt aiwan . no 1 . app . ss fm . models . use cases . Add Playlist Case Ċ import Ġt aiwan . no 1 . app . ss fm . models . use cases . Add Playlist Use case Ċ Ċ /** Ċ Ġ* Ċ Ġ* Ġ@ author Ġ Ġji ey i Ċ Ġ* Ġ@ since ĠĠĠ 9 / 1 3 / 1 7 Ċ Ġ*/ Ċ class ĠPlaylist ViewModel ( private Ġval Ġcontext : ĠContext , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprivate Ġval Ġadd Playlist Use case : ĠAdd Playlist Case ) Ġ: ĠBase ViewModel () Ġ{ ĊĠĠĠ Ġval Ġtitle Ġby Ġlazy Ġ{ ĠObservable Field < String >( context . getString ( R . string . menu _ my _ playlist )) Ġ} ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ@ param Ġview ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ event _ to Ġ[ ta iw an . no 1 . app . ss fm . features . playlist . Playlist Activity . navigate To Playlist Detail ] ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġfun Ġadd Playlist OnClick ( view : ĠView ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠTODO ( ji ey i ): Ġ 1 1 / 1 7 / 1 7 ĠJ udge Ġthe Ġevent Ġis Ġfrom Ġwhere . Ċ // ĠĠĠĠĠĠĠ ĠToolbar Helper ( view ). getCurrent Fragment Ġ{ Ċ // ĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġlifecycle Provider . execute ( add Playlist Use case , ĠAdd Playlist Use case . Request Value ( Playlist Entity ())) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Next Ġ{ ĠRx Bus . get (). post ( VIEW MODEL _ CLICK _ ADD _ PLAY LIST , ĠPair ( it , ĠlistOf < Pair < View , ĠString >> ())) Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }