package Ġde . se em oo . at _ tracking _ detection . database . view model Ċ Ċ import Ġde . se em oo . at _ tracking _ detection . database . repository . Notification Repository Ċ import Ġde . se em oo . at _ tracking _ detection . database . tables . Notification Ċ import Ġjava . time . LocalDateTime Ċ import Ġjava . time . Zone Offset Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠNotification ViewModel Ġ@ Inject Ġconstructor ( private Ġval Ġnotification Repository : ĠNotification Repository ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert ( device Address : ĠString ): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnotification Ġ= ĠNotification ( device Address , Ġfalse , ĠLocalDateTime . now ( Zone Offset . UTC )) ĊĠĠĠĠĠĠĠ Ġreturn Ġnotification Repository . insert ( notification ). toInt () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġmark False Alarm ( notification Id : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification Repository . mark False Alarm ( notification Id ) ĊĠĠĠ Ġ} Ċ }