package Ġcom . rit tam ann . min ic heck list . ui . not elist Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . rit tam ann . min ic heck list . data . base . Note Ċ import Ġcom . rit tam ann . min ic heck list . data . repository . dao . Note DAO Ċ import Ġcom . rit tam ann . min ic heck list . data . repository . dao . config . Query DAO Ċ Ċ class ĠNote ListModel ( context : ĠContext ) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġnote DAO Ġ= ĠNote DAO ( context ) ĊĊĠĠĠ Ġfun Ġset Checked ( note : ĠNote ) Ġ= Ġnote DAO . setChecked ( note ) ĊĠĠĠ Ġfun ĠgetAll () Ġ= Ġnote DAO . getAll ( Query DAO . DESC ) ĊĠĠĠ Ġfun Ġnew Note ( note : ĠNote ) Ġ= Ġnote DAO . insert ( note ) ĊĠĠĠ Ġfun Ġupdate Id Api ( note : ĠNote ) Ġ= Ġnote DAO . update Id Api ( note ) Ċ } Ċ