package Ġas vid . github . io . room app . data . gist with owner Ċ Ċ import Ġas vid . github . io . room app . model . G ist With Owner Model Ċ import Ġas vid . github . io . room app . model . to Model Ċ import Ġio . reactivex . Flow able Ċ import Ġio . reactivex . Single Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠG ist With Owner Repository Ġ@ Inject Ġconstructor ( var Ġgist With Owner Dao : ĠG ist With Owner Dao ) Ċ { ĊĠ Ġfun Ġfetch All (): ĠFlow able < Collection < G ist With Owner Model >> Ġ{ ĊĠĠĠ Ġreturn Ġgist With Owner Dao . get G ists With Owners (). map Ġ{ Ġit . to Model () Ġ} ĊĠ Ġ} ĊĊĠ Ġfun Ġsave ( model : ĠG ist With Owner Model ): ĠSingle < G ist With Owner Model > Ġ{ ĊĠĠĠ Ġreturn Ġgist With Owner Dao . save Owner And G ist ( model ) ĊĠ Ġ} Ċ }