package Ġbr . com . si . uf rr j . database . DAO s Ċ Ċ import Ġandroidx . room .* Ċ import Ġbr . com . si . uf rr j . database . models . Card Ċ import Ġbr . com . si . uf rr j . database . models . User Ċ Ċ @ Dao Ċ interface ĠHero DAO { ĊĊĠĠĠ Ġ// ret orna Ġtodas Ġas Ġcart as Ġdo Ġsistema ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġcart as ") ĊĠĠĠ Ġsuspend Ġfun Ġget Cart as (): ĠList < Card > ĊĊĠĠĠ Ġ// ret orna Ġcart as Ġpor Ġid ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġcart as ĠWHERE Ġid _ cart a Ġ= Ġ: id _ cart a ") ĊĠĠĠ Ġsuspend Ġfun Ġget Cart as ById ( id _ cart a : ĠInt ): ĠCard ĊĊĠĠĠ Ġ// ret orna Ġcart as Ġde Ġum ĠusuÃ¡rio ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġcart as ĠWHERE Ġp essoa Ġ= Ġ: p essoa ") ĊĠĠĠ Ġsuspend Ġfun ĠgetUser Deck ( p essoa : ĠLong ): ĠArrayList < Card > ĊĊĠĠĠ Ġ// ret orna Ġcart a Ġpelo Ġt ÃŃtulo ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġcart as ĠWHERE Ġt itulo Ġ= Ġ: titulo ") ĊĠĠĠ Ġsuspend Ġfun Ġget Cart as ByName ( titulo : ĠString ): ĠCard ĊĊĠĠĠ Ġ// suspend Ġfun Ġdelete Cart a ( cart a : ĠCard ) ĊĊĠĠĠ Ġ// ad icion a Ġcart a Ġao Ġsistema ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . ABORT ) Ġ// ĠusuÃ¡rio ĠjÃ¡ Ġposs ui Ġcart a ĊĠĠĠ Ġsuspend Ġfun Ġadicion a Cart a ( cart a : ĠCard , Ġp essoa : ĠUser ): ĠBoolean Ċ }