package Ġcom . firebase . hack week . tank 1 8 th scale . data Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . firebase . hack week . tank 1 8 th scale . model . DeviceInfo Ċ Ċ class ĠBluetooth Device List Ġ{ ĊĠĠĠ Ġprivate Ġval Ġdevices Ġ= Ġmutable Set Of < DeviceInfo >() ĊĊĠĠĠ Ġprivate Ġval Ġdevices LiveData Ġ= ĠMutable LiveData < List < DeviceInfo >>() ĊĊĠĠĠ Ġval Ġlive Data Ġ: ĠLive Data < List < DeviceInfo >> ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġdevices LiveData ĊĊĠĠĠ Ġfun Ġadd Device ( device Ġ: ĠDevice Info ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdevices . add ( device ) ĊĠĠĠĠĠĠĠ Ġdevices LiveData . post Value ( devices . toList (). sorted By Ġ{ Ġit . name Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠTODO : ĠRemove Ġdevices Ġtoo Ċ } Ċ