package Ġio . github . z wi eb ack . family finance . business . currency . lifecycle . destroy er Ċ Ċ import Ġandroid . content . Context Ċ import Ġio . github . z wi eb ack . family finance . R Ċ import Ġio . github . z wi eb ack . family finance . core . lifecycle . destroy er . Entity Destroy er Ċ import Ġio . github . z wi eb ack . family finance . core . lifecycle . destroy er . Entity From Destroy er Ċ import Ġio . github . z wi eb ack . family finance . core . model . Account Ċ import Ġio . github . z wi eb ack . family finance . core . model . Currency Ċ import Ġio . re query . Persist able Ċ import Ġio . re query . query . Condition Ċ import Ġio . re query . reactivex . Reactive Entity Store Ċ Ċ class ĠCurrency From Accounts Destroy er ( context : ĠContext , Ġdata : ĠReactive Entity Store < Persist able >) Ġ: ĊĠĠĠ ĠEntity From Destroy er < Currency , ĠAccount >( context , Ġdata ) Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġfrom Class : ĠClass < Account > ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠAccount :: class . java ĊĊĠĠĠ Ġoverride Ġval Ġalert ResourceId : ĠInt ĊĠĠĠĠĠĠĠ Ġget () Ġ= ĠR . string . accounts _ with _ currency _ exists ĊĊĠĠĠ Ġoverride Ġfun Ġnext (): ĠEntity Destroy er < Currency >? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCurrency From Exchange Rates Destroy er ( context , Ġdata ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" PARAMETER _ NAME _ CHANGED _ ON _ OVERRIDE ") ĊĠĠĠ Ġoverride Ġfun Ġget Where Condition ( currency : ĠCurrency ): ĠCondition < *, Ġ*> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAccount . CUR RE NCY _ ID . eq ( currency . id ) ĊĠĠĠ Ġ} Ċ } Ċ