package Ġde . r ki . cor on aw arn app . covid certificate . common . state check Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . work . Coroutine Worker Ċ import Ġandroidx . work . Worker Parameters Ċ import Ġdagger . ass isted . Ass isted Ċ import Ġdagger . ass isted . Ass isted Factory Ċ import Ġdagger . ass isted . Ass isted Inject Ċ import Ġde . r ki . cor on aw arn app . covid certificate . expiration . D cc Expiration Notification Service Ċ import Ġde . r ki . cor on aw arn app . util . worker . Inject ed Worker Factory Ċ import Ġtim ber . log . Tim ber Ċ Ċ class ĠD cc State Check Worker Ġ@ Ass isted Inject Ġconstructor ( ĊĠĠĠ Ġ@ Ass isted Ġval Ġcontext : ĠContext , ĊĠĠĠ Ġ@ Ass isted Ġworker Params : ĠWorker Parameters , ĊĠĠĠ Ġprivate Ġval Ġd cc Expiration Notification Service : ĠD cc Expiration Notification Service , Ċ ) Ġ: ĠCor outine Worker ( context , Ġworker Params ) Ġ{ ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġdo Work (): ĠResult Ġ= Ġtry Ġ{ ĊĠĠĠĠĠĠĠ Ġd cc Expiration Notification Service . show Notification If Expired () ĊĊĠĠĠĠĠĠĠ ĠResult . success () ĊĠĠĠ Ġ} Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . tag ( TAG ). e ( e , Ġ" D CC Ġstate Ġcheck Ġfailed .") ĊĠĠĠĠĠĠĠ ĠResult . retry () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Ass isted Factory ĊĠĠĠ Ġinterface ĠFactory Ġ: ĠInject ed Worker Factory < D cc State Check Worker > ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠTAG Ġ= ĠD cc State Check Worker :: class . java . simple Name ĊĠĠĠ Ġ} Ċ } Ċ