package Ġcom . mo ony . calc . data čĊč Ċ import Ġandroidx . lifecycle . LiveData č Ċ import Ġcom . mo ony . calc . database . Saving History Dao č Ċ import Ġcom . mo ony . calc . model . Saving History č Ċ import Ġjavax . inject . Inject čĊč Ċ class ĠS aving History Repository Ġ@ Inject Ġconstructor ( private Ġval Ġsaving History Dao : ĠS aving History Dao ) Ġ{ čĊčĊĠĠĠ Ġsuspend Ġfun Ġinsert Saving History ( saving History : ĠS aving History ) Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . insert Saving History ( saving History ) čĊčĊĠĠĠ Ġsuspend Ġfun Ġupdate Saving History ( saving History : ĠS aving History ) Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . update Saving History ( saving History ) čĊčĊĠĠĠ Ġsuspend Ġfun Ġdelete Saving History ( saving History : ĠS aving History ) Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . delete Saving History ( saving History ) čĊčĊĠĠĠ Ġfun ĠgetAll Saving History ( id Saving : ĠString ): ĠLive Data < List < Saving History >> Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . getAll Saving History ( id Saving ) čĊčĊĠĠĠ Ġfun ĠgetCurrent Saving Amount ( id Saving : ĠString ): ĠLive Data < Double > Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . getCurrent Saving Amount ( id Saving ) čĊčĊčĊĠĠĠ Ġsuspend Ġfun Ġdelete Saving History By Transaction ( id Transaction : ĠString ) Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . delete Saving History By Transaction ( id Transaction ) čĊčĊĠĠĠ Ġsuspend Ġfun Ġdelete All Transaction By Saving ( id Saving : ĠString ) Ġ= čĊĠĠĠĠĠĠĠĠĠĠĠ Ġsaving History Dao . delete All Transaction By Saving ( id Saving ) čĊč Ċ }