package Ġcom . n ora . ny t news apps . presentation . screens . today Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . n ora . ny t news apps . data . database . Story Database Ċ import Ġcom . n ora . ny t news apps . data . network . Story Presentation Ċ import Ġcom . n ora . ny t news apps . data . network . Top St ories Ċ import Ġkotlinx . coroutines . Coroutine Scope Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . Job Ċ import Ġkotlinx . coroutines . launch Ċ Ċ class ĠToday ViewModel ( val Ġdatabase : ĠStory Database ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval ĠviewModel Job Ġ= ĠJob () ĊĠĠĠ Ġprivate Ġval Ġui Scope Ġ= ĠCor outine Scope ( Dispatch ers . Main Ġ+ ĠviewModel Job ) ĊĊĠĠĠ Ġprivate Ġval Ġ_ top St ories Data Ġ= ĠMutable LiveData < List < Story Presentation >>() ĊĠĠĠ Ġval Ġtop St ories Data : ĠLive Data < List < Story Presentation >> ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġ_ top St ories Data Ċ Ċ }