package Ġcom . example . tf g _ ur jc _ app fir str un . DAO Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Delete Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . Query Ċ import Ġcom . example . tf g _ ur jc _ app fir str un . Entities . Week Ċ Ċ @ Dao Ċ interface ĠWeek Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġweeks ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll (): ĠMutable List < Week ?> ? ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġweeks ĠWHERE Ġtraining _ owner _ Id Ġ= Ġ: training Id ĠORDER ĠBY Ġnumber _ week ĠASC ") ĊĠĠĠ Ġsuspend Ġfun Ġget Week By Training Id ( training Id : ĠString ): ĠList < Week ?> ? ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġweeks ĠWHERE Ġweek Id Ġ= Ġ: week Id ") ĊĠĠĠ Ġsuspend Ġfun Ġget ById ( week Id : ĠString ?): ĠWeek ? ĊĊĠĠĠ Ġ@ Insert ĊĠĠĠ Ġsuspend Ġfun Ġinsert All ( var arg Ġweek : ĠWeek ?) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġsuspend Ġfun Ġdelete ( week : ĠWeek ?) Ċ }