package Ġuk . n hs . n hs x . covid 1 9 . android . app . test ordering Ċ Ċ import Ġcom . squareup . mos hi . Json Class Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . remote . data . V iro logy Test Kit Type Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . remote . data . V iro logy TestResult Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . remote . data . V iro logy TestResult . P LOD Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . remote . data . V iro logy TestResult . VOID Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test ordering . Conf ir mat ory Test Completion Status . COMPLETED Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test ordering . Conf ir mat ory Test Completion Status . COMPLETED _ AND _ CON FI R MED Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test ordering . Re levant V iro logy TestResult . POSITIVE Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test ordering . Re levant V iro logy TestResult . NEGATIVE Ċ import Ġjava . time . Clock Ċ import Ġjava . time . LocalDate Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠAck nowled ged TestResult ( ĊĠĠĠ Ġval Ġtest EndDate : ĠLocalDate , ĊĠĠĠ Ġval Ġtest Result : ĠRe levant V iro logy TestResult , ĊĠĠĠ Ġoverride Ġval Ġtest Kit Type : ĠV iro logy Test Kit Type ?, ĊĠĠĠ Ġval Ġacknowled ged Date : ĠLocalDate , ĊĠĠĠ Ġval Ġrequires Conf ir mat ory Test : ĠBoolean Ġ= Ġfalse , ĊĠĠĠ Ġval Ġconfirmed Date : ĠLocalDate ? Ġ= Ġnull , ĊĠĠĠ Ġoverride Ġval Ġconf ir mat ory Day Limit : ĠInt ? Ġ= Ġnull , ĊĠĠĠ Ġval Ġconf ir mat ory Test Completion Status : ĠConf ir mat ory Test Completion Status ? Ġ= Ġnull Ċ ) Ġ: ĠTest Result Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġtest EndDate ( clock : ĠClock ): ĠLocalDate Ġ= Ġtest EndDate ĊĊĠĠĠ Ġoverride Ġfun Ġis Positive (): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġtest Result Ġ== ĠPOS ITIVE ĊĊĠĠĠ Ġoverride Ġfun Ġis Negative (): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġtest Result Ġ== ĠNE G ATIVE ĊĊĠĠĠ Ġfun Ġis Confirmed (): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġconf ir mat ory Test Completion Status Ġ== ĠCOMP LETED _ AND _ CON FI R MED Ġ|| Ġ! requires Conf ir mat ory Test ĊĊĠĠĠ Ġfun Ġis Completed (): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġconf ir mat ory Test Completion Status Ġ== ĠCOMP LETED Ġ|| ĊĠĠĠĠĠĠĠĠĠĠĠ Ġconf ir mat ory Test Completion Status Ġ== ĠCOMP LETED _ AND _ CON FI R MED Ċ } Ċ Ċ enum Ġclass ĠConf ir mat ory Test Completion Status Ġ{ ĊĠĠĠ ĠCOMP LETED , ĠCOMP LETED _ AND _ CON FI R MED Ċ } Ċ Ċ enum Ġclass ĠRe levant V iro logy TestResult ( val Ġre levance : ĠInt ) Ġ{ ĊĠĠĠ ĠPOS ITIVE ( 1 ), ĊĠĠĠ ĠNE G ATIVE ( 0 ) Ċ } Ċ Ċ fun ĠV iro logy TestResult . to Re levant V iro logy TestResult (): ĠRe levant V iro logy TestResult ? Ġ= ĊĠĠĠ Ġwhen Ġ( this ) Ġ{ ĊĠĠĠĠĠĠĠ ĠV iro logy TestResult . POSITIVE Ġ-> ĠPOS ITIVE ĊĠĠĠĠĠĠĠ ĠV iro logy TestResult . NEGATIVE Ġ-> ĠNE G ATIVE ĊĠĠĠĠĠĠĠ ĠVOID , ĠP LOD Ġ-> Ġnull ĊĠĠĠ Ġ} Ċ