package Ġcom . f ur kan ask in . app . pod po cket . db . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . f ur kan ask in . app . pod po cket . db . entities . Recent ly Play s Entity Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠF ur kan Ġon Ġ 2 0 1 9 - 0 7 - 0 3 Ċ Ġ*/ Ċ Ċ @ Dao Ċ interface ĠRecent ly Play s Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Recent ly Play ( recent ly Play s Entity : ĠRecent ly Play s Entity ) ĊĊĠĠĠ Ġ@ Query (" Delete ĠFrom ĠRecent ly Play s ") ĊĠĠĠ Ġfun Ġdelete All () ĊĊĠĠĠ Ġ@ Query (" Select Ġ* ĠFrom ĠRecent ly Play s ĠWhere Ġtype =: type ") ĊĠĠĠ Ġfun Ġget Recent ly Play s ( type : ĠString ): ĠList < Recent ly Play s Entity > ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom ĠRecent ly Play s Ġwhere Ġtype =' podcast ' Ġorder Ġby Ġid Ġasc ") ĊĠĠĠ Ġfun Ġget Recent ly Play ed Pod casts (): ĠList < Recent ly Play s Entity > ĊĊĠĠĠ Ġ@ Query (" Select Ġ* Ġfrom ĠRecent ly Play s Ġwhere Ġtype =' episode ' Ġorder Ġby Ġid Ġasc ") ĊĠĠĠ Ġfun Ġget Recent ly Play ed Episode s (): ĠList < Recent ly Play s Entity > Ċ }