package Ġnet . ral php ina . family central . family Ċ Ċ import Ġio . reactivex . Observable Ċ import Ġjava . util .* Ċ import Ġjavax . inject . Inject Ċ Ċ data Ġclass ĠFamily ( val Ġmembers : ĠList < Member >) Ċ Ċ data Ġclass ĠMember ( ĊĠĠĠ Ġval ĠfirstName : ĠString , ĊĠĠĠ Ġval ĠlastName : ĠString , ĊĠĠĠ Ġval Ġdo b : ĠLong , ĊĠĠĠ Ġval Ġphoto : ĠString ? Ġ= Ġnull Ċ ) Ġ{ ĊĠĠĠ Ġfun ĠfullName () Ġ= Ġ"$ firstName Ġ$ lastName " ĊĊĠĠĠ Ġfun Ġdo b AsString (): ĠString Ġ= Ġdo b . toString () Ċ } Ċ Ċ interface ĠFamily Repository Ġ{ ĊĠĠĠ Ġfun Ġobserve (): ĠObservable < Family > Ċ } Ċ Ċ class ĠFamily Repository Impl Ġ@ Inject Ġconstructor () Ġ: ĠFamily Repository Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġobserve (): ĠObservable < Family > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġd ad Ġ= ĠMember (" R alph ", Ġ" P ina ", ĠDate (). time ) ĊĠĠĠĠĠĠĠ Ġval Ġm om Ġ= ĠMember (" J oh anna ", Ġ" P ina ", ĠDate (). time ) ĊĠĠĠĠĠĠĠ Ġval Ġda ughter Ġ= ĠMember (" N atal ie ", Ġ" P ina ", ĠDate (). time ) ĊĠĠĠĠĠĠĠ Ġval Ġson Ġ= ĠMember (" Max ", Ġ" P ina ", ĠDate (). time ) ĊĠĠĠĠĠĠĠ Ġreturn ĠObservable . just ( Family ( listOf ( dad , Ġm om , Ġda ughter , Ġson ))) ĊĠĠĠ Ġ} Ċ }