/* Ċ Ġ* Ċ Ġ* ĠCopyright Ġ( c ) ĠMicrosoft ĠCorporation . ĠAll Ġrights Ġreserved . Ċ Ġ* ĠLicensed Ġunder Ġthe ĠMIT ĠLicense . Ċ Ġ* Ċ Ġ*/ Ċ Ċ package Ġcom . microsoft . device . samples . dual screen experience . domain . product . use cases Ċ Ċ import Ġcom . microsoft . device . samples . dual screen experience . data . product . Product DataSource Ċ import Ġcom . microsoft . device . samples . dual screen experience . domain . product . model . Product Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠGet Product ById UseCase Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġproduct Repository : ĠProduct DataSource Ċ ) Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġget ById ( productId : ĠLong ): ĠProduct ? Ġ= ĊĠĠĠĠĠĠĠ Ġproduct Repository . getById ( productId )?. let Ġ{ ĠProduct ( it ) Ġ} Ċ } Ċ