package Ġcom . existing . bo iler x . common . base . repository . base Ċ Ċ import Ġcom . existing . next work . engine . App Executors Ċ import Ġcom . existing . next work . engine . bound . Next work Bound Resource Ċ import Ġcom . existing . next work . operator . N Log Ċ import Ġcom . existing . bo iler x . common . base . repository . base . model . App Result Ċ import Ġcom . existing . bo iler x . common . base . repository . base . model . App Response Ċ import Ġio . reactivex . Flow able Ċ Ċ open Ġclass ĠDefault Network Bound Resource < Result Type , ĠRequest Type >( ĊĠĠĠ Ġapp Executor : ĠApp Executors , ĊĠĠĠ Ġcreate Call : Ġ() Ġ-> ĠFlow able < App Response < RequestType >>, ĊĠĠĠ Ġon ConvertTo Result Type : Ġ( RequestType ) Ġ-> ĠResult Type , ĊĠĠĠ Ġon Save Call Result : Ġ( Result Type ) Ġ-> ĠUnit Ġ= Ġ{}, ĊĠĠĠ Ġon Fetch Failed : Ġ( Throwable ?) Ġ-> ĠUnit Ġ= Ġ{ ĠN Log . e ( prefix Log , Ġ" Load Ġfrom Ġdatabase : Ġon Fetch Failed () ") Ġ}, ĊĠĠĠ Ġpayload Back : ĠAny ? Ġ= Ġnull , ĊĠĠĠ Ġprefix Log : ĠString Ġ= Ġ"" Ċ ) Ġ: ĠNext work Bound Resource < ĊĠĠĠĠĠĠĠ ĠResult Type , ĊĠĠĠĠĠĠĠ ĠRequest Type , ĊĠĠĠĠĠĠĠ ĠApp Response < RequestType >, ĊĠĠĠĠĠĠĠ ĠApp Result < Result Type >>( ĊĠĠĠ Ġapp Executor , ĊĠĠĠ Ġcreator (), ĊĠĠĠ Ġcreate Call , ĊĠĠĠ Ġon ConvertTo Result Type , ĊĠĠĠ Ġon Save Call Result , ĊĠĠĠ Ġon Fetch Failed Ġ= Ġon Fetch Failed , ĊĠĠĠ Ġpayload Back Ġ= Ġpayload Back , ĊĠĠĠ Ġprefix Log Ġ= Ġprefix Log Ċ ) ĊĊĊ