package Ġcom . mike pen z . story b lok . app . view model Ċ Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . mike pen z . common . repository . Story b lok Repository Ċ import Ġcom . mike pen z . story b lok . app . Build Config Ċ import Ġcom . mike pen z . story b lok . sdk . model . Story Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . launch Ċ Ċ class ĠSample ViewModel Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġclient Ġ= ĠStory b lok Repository ( Build Config . ST ORY B LO K _ TOKEN ) ĊĊĠĠĠ Ġval Ġstories Ġ= ĠMutable LiveData < List < Story >>() ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstories . post Value ( client . fetch St ories ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }