package Ġcom . hard soft studio . android x . movies . ui Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . hard soft studio . android x . movies . domain . Main Actions Ċ import Ġcom . hard soft studio . android x . movies . domain . Main State Ċ Ċ class ĠMain ViewModel ( private Ġval Ġmain Actions : ĠMain Actions ) Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġfun Ġget Main State (): ĠLive Data < Main State > Ġ= Ġmain Actions . get Main State () ĊĊĠĠĠ Ġfun Ġon Back Pressed () Ġ= Ġmain Actions . go Back () Ċ } Ċ