package Ġcom . rj vj ha . android . employee . work Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . work . Worker Ċ import Ġandroidx . work . Worker Parameters Ċ import Ġcom . rj vj ha . android . employee . Employee Application Ċ import Ġcom . rj vj ha . android . employee . data . model . Employee Ċ Ċ class ĠSave Employee Worker Class Ġ( private Ġ Ġval Ġcontext : Context , Ġworker Parameters : ĠWorker Parameters ): Worker ( context , worker Parameters ) Ġ{ ĊĊĊĊĠĠĠ Ġoverride Ġfun Ġdo Work (): ĠResult Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdatabase Service Ġ= Ġ( context . application Context Ġas ĠEmployee Application ). database Service ĊĠĠĠĠĠĠĠ Ġval Ġemp Ġ= ĠEmployee Ġ( 1 4 ," dummy @ outlook . com "," Adam "," J ones "," ") ĊĠĠĠĠĠĠĠ Ġdatabase Service . employee Dao (). insert ( emp ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResult . success () ĊĠĠĠ Ġ} ĊĊ Ċ }