package Ġcom . in ju . day w orry android . notification . build logic Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcom . in ju . day w orry android . model . implement ations . Day W orry Repo Impl Ċ import Ġcom . in ju . day w orry android . model . repository . ID ay W orry Repository Ċ import Ġcom . in ju . day w orry android . ret rofit . ApiService Ċ import Ġcom . in ju . day w orry android . ret rofit . Ret rofit Client Ċ import Ġcom . in ju . day w orry android . utils . Constants . API _ BASE _ URL Ċ Ċ class ĠNot i List Injector ( application : ĠApplication ): ĠAndroid ViewModel ( application ) Ġ{ ĊĊĠĠĠ Ġval Ġapp : ĠApplication Ġ= Ġapplication ĊĊĠĠĠ Ġprivate Ġval Ġhttp Call : ĠApi Service ? Ġ= ĊĠĠĠĠĠĠĠ ĠRet rofit Client . getClient ( API _ BASE _ URL ) !!. create ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠApi Service :: class . java ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠ Ġprivate Ġfun Ġget Not i List Repository (): ĠID ay W orry Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDay W orry Repo Impl ( http Call , Ġapp ) Ċ // ĠĠĠĠĠĠĠ Ġreturn ĠDay W orry Repo Impl ( app ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġprovide Not i List ViewModel Factory (): ĠNot i List ViewModel Factory Ġ= ĊĠĠĠĠĠĠĠ ĠNot i List ViewModel Factory ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġget Not i List Repository () ĊĠĠĠĠĠĠĠ Ġ) Ċ }