package Ġcom . uz air . sh oem ate . view _ models Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . uz air . sh oem ate . data _ source . Sh oe Ċ Ċ class ĠActivity ViewModel Ġ: ĠViewModel () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġsh oe Inventory Ġ= ĠLinked HashSet < Sh oe >() ĊĠĠĠ Ġprivate Ġval Ġ_ sh oes Ġ= ĠMutable LiveData < Set < Sh oe >>() ĊĠĠĠ Ġval Ġsh oes : ĠLive Data < Set < Sh oe >> Ġ= Ġ_ sh oes ĊĊĠĠĠ Ġfun Ġadd Sh oe To Inventory ( sh oe : ĠSh oe ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsh oe Inventory . add ( sh oe ) ĊĠĠĠĠĠĠĠ Ġ_ sh oes . post Value ( sh oe Inventory ) ĊĠĠĠ Ġ} Ċ }