package Ġmobile . se oul ing . com . application . home . plan Ċ Ċ import Ġio . reactivex . Flow able Ċ import Ġmobile . se oul ing . com . application . data . db . Plan Dao Ċ import Ġmobile . se oul ing . com . application . data . vo . Plan Ċ Ċ class ĠPlan Local DataSource ( private Ġval Ġplan Dao : ĠPlan Dao ) Ġ{ ĊĊĠĠĠ Ġfun Ġget Plans (): ĠFlow able < List < Plan >> Ġ= Ġplan Dao . get Plans () ĊĊĠĠĠ Ġfun Ġget Plan DataSource Factory () Ġ= Ġplan Dao . get Plans As DataSource Factory () ĊĊĠĠĠ Ġfun Ġset Plans ( plans : ĠList < Plan >) Ġ= Ġplan Dao . insert ( plans ) ĊĊĠĠĠ Ġfun Ġset Plan ( plan : ĠPlan ) Ġ= Ġplan Dao . insert ( plan ) ĊĊĠĠĠ Ġfun Ġget Plan ( plan Id : ĠInt ) Ġ= Ġplan Dao . get Plan ( plan Id ) ĊĊĠĠĠ Ġfun Ġget Plan As Maybe ( plan Id : ĠInt ) Ġ= Ġplan Dao . get Plan As Maybe ( plan Id ) Ċ }