package Ġorg . step ic . d roid . core Ċ Ċ import Ġorg . step ik . android . model . attempts . Attempt Ċ import Ġorg . step ic . d roid . model . Lesson Session Ċ import Ġorg . step ik . android . model . Submission Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠLocal Lesson Session ManagerImpl Ċ @ Inject Ċ constructor () Ġ: ĠLess on Session Manager Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġstep Id To Lesson Session : ĠMutable Map < Long , ĠLess on Session > Ġ= Ġhash Map Of () ĊĊĠĠĠ Ġoverride Ġfun Ġsave Session ( step Id : ĠLong , Ġattempt : ĠAttempt ?, Ġsubmission : ĠSubmission ?, ĠnumberOf Submission On First Page : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( attempt Ġ== Ġnull Ġ|| Ġsubmission Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġstep Id To Lesson Session [ step Id ] Ġ= ĠLess on Session ( step Id , Ġattempt , Ġsubmission , ĠnumberOf Submission On First Page ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġreset () Ġ{ ĊĠĠĠĠĠĠĠ Ġstep Id To Lesson Session . clear () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrestore Lesson Session ( step Id : ĠLong ): ĠLess on Session ? Ġ= Ġstep Id To Lesson Session [ step Id ] Ċ } Ċ