package Ġcom . re kt apps . ass ault timer . storage . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . Query Ċ import Ġcom . re kt apps . ass ault timer . model . entity . Ass ault Ċ import Ġcom . re kt apps . ass ault timer . model . entity . Manual Notification Ċ import Ġcom . re kt apps . ass ault timer . model . enums . Ass ault Type Ċ import Ġcom . re kt apps . ass ault timer . model . enums . Region Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ Ċ @ Dao Ċ interface ĠManual Notification Dao Ġ{ ĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġfun Ġcreate ( manual Notification : ĠManual Notification ): ĠComp letable ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠManual Notification ĠWHERE Ġass ault Id Ġ= Ġ: ass ault Id ") ĊĠĠĠ Ġfun Ġdelete By Ass ault Id ( ass ault Id : ĠLong ): Comp letable ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠManual Notification ĠWHERE Ġass ault Id Ġ= Ġ: ass ault Id ") ĊĠĠĠ Ġfun ĠgetBy Ass ault Id ( ass ault Id : ĠLong ): ĠSingle < Manual Notification > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠAss ault ĠWHERE Ġregion = Ġ: region ĠAND Ġtype Ġ= Ġ: type ĠAND Ġid Ġin Ġ( SELECT Ġass ault Id ĠFROM ĠManual Notification ) ĠORDER ĠBY Ġstart ") ĊĠĠĠ Ġfun Ġget Selected Ass ault ( region : ĠRegion , Ġtype : ĠAss ault Type ): ĠSingle < List < Ass ault >> Ċ }