package Ġio . github . w ulkan owy . data . repositories . recipient Ċ Ċ import Ġio . github . w ulkan owy . data . db . dao . Recipient Dao Ċ import Ġio . github . w ulkan owy . data . db . entities . Recipient Ċ import Ġio . github . w ulkan owy . data . db . entities . Reporting Unit Ċ import Ġio . github . w ulkan owy . data . db . entities . Student Ċ import Ġjavax . inject . Inject Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ class ĠRe cipient Local Ġ@ Inject Ġconstructor ( private Ġval Ġrecipient Db : ĠRe cipient Dao ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġget Recipients ( student : ĠStudent , Ġrole : ĠInt , Ġunit : ĠReporting Unit ): ĠList < Recipient > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrecipient Db . load ( student . student Id , Ġrole , Ġunit . real Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġsave Recipients ( recipients : ĠList < Recipient >): ĠList < Long > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġrecipient Db . insert All ( recipients ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Recipients ( recipients : ĠList < Recipient >) Ġ{ ĊĠĠĠĠĠĠĠ Ġrecipient Db . delete All ( recipients ) ĊĠĠĠ Ġ} Ċ } Ċ