package Ġcom . pin etree apps . sh in yst ation frame . receiver Ċ Ċ import Ġandroid . content . Broadcast Receiver Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġcom . pin etree apps . sh in yst ation frame . d agger . App Delegate Ċ import Ġcom . pin etree apps . sh in yst ation frame . data . repository . Weather Station Api Ċ import Ġcom . pin etree apps . sh in yst ation frame . page . alarm . util . Alarm Helper Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠBoot Completed Receiver Ġ: ĠBroadcast Receiver () Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠApp Delegate . graph . inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġrepository : ĠWeather Station Api ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġcontext : ĠContext ĊĊĠĠĠ Ġoverride Ġfun Ġon Receive ( p 0 : ĠContext ?, Ġp 1 : ĠIntent ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġif ( p 1 ?. action Ġ!= Ġ" android . intent . action . BOOT _ COMPLETED ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġalarm List Ġ= Ġrepository . get Alarm List () Ġ?: Ġreturn ĊĠĠĠĠĠĠĠ ĠAlarm Helper . re schedule Al arms After Reboot ( context , Ġalarm List ) ĊĊĠĠĠĠĠĠĠ Ġ// saving Ġalarm Ġlist Ġto Ġtrigger Ġalarm Ġstatus Ġupdate ĊĠĠĠĠĠĠĠ Ġrepository . save Alarm List ( alarm List ) ĊĠĠĠ Ġ} Ċ }