package Ġcom . holo lo . app . squ ar ere po . ui . list Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . paging . Paged List Ċ import Ġcom . holo lo . app . squ ar ere po . App Ċ import Ġcom . holo lo . app . squ ar ere po . core . Base ViewModel Ċ import Ġcom . holo lo . app . squ ar ere po . db . entities . Project Entity Ċ import Ġcom . holo lo . app . squ ar ere po . db . views . Project Entity View Ċ import Ġcom . holo lo . app . squ ar ere po . repo . Repo Factory Ċ import Ġcom . holo lo . app . squ ar ere po . repo . project . Project Repo Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠList Fragment ViewModel ( app : ĠApplication ) Ġ: ĠBase ViewModel ( app ) Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġrepo Factory : ĠRepo Factory ĊĊĠĠĠ Ġprivate Ġvar Ġrepo : ĠProject Repo ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġ( app Ġas ? ĠApp )?. component ?. inject ( this ) ĊĊĠĠĠĠĠĠĠ Ġrepo Ġ= Ġrepo Factory . create Instance < Project Repo >() Ġas ĠProject Repo ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Projects (): ĠLive Data < Paged List < Project Entity View >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrepo . get Projects (). page d List ĊĠĠĠ Ġ} ĊĊ Ċ }