package Ġcom . mg sso ftware . mg sd ashboard . reminder . task completion . ui . view model Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . mg sso ftware . mg sd ashboard . data . repository . Main Repository Ċ import Ġcom . mg sso ftware . mg sd ashboard . reminder . data . model . Reminder API Ċ import Ġkotlinx . coroutines . launch Ċ Ċ class ĠTasks Completion ViewModel ( private Ġval Ġrepository : ĠMain Repository ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmutable Rv First Place : ĠMutable LiveData < Reminder API > Ġ= ĠMutable LiveData () ĊĠĠĠ Ġval Ġrv First Place : ĠLive Data < Reminder API > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġmutable Rv First Place ĊĊĠĠĠ Ġprivate Ġval Ġmutable Rv Task Completion : ĠMutable LiveData < Reminder API > Ġ= ĠMutable LiveData () ĊĠĠĠ Ġval Ġrv Task Completion : ĠLive Data < Reminder API > ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġmutable Rv Task Completion ĊĊĠĠĠ Ġfun Ġget Rv Task Completion () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmutable Rv Task Completion . value Ġ= Ġrepository . get Reminder User () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Rv First Place () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmutable Rv First Place . value Ġ= Ġrepository . get Reminder User () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }