package Ġcom . se b ast ians oko low ski . health guard . receiver Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . util . Log Ċ import Ġcom . se b ast ians oko low ski . health guard . model . Notification Model Ċ import Ġdagger . android . D agger Broadcast Receiver Ċ import Ġjavax . inject . Inject ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSeb astian ĠS oko ÅĤ owski Ġon Ġ 0 4 . 0 6 . 1 9 . Ċ Ġ*/ Ċ class ĠCancel SMS Notification Receiver Ġ: ĠD agger Broadcast Receiver () Ġ{ ĊĠĠĠ Ġprivate Ġval ĠTAG Ġ= Ġjava Class . canonical Name ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġnotification Model : ĠNotification Model ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠEX TRA _ NOTIFICATION _ ID Ġ= Ġ" notification _ id " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Receive ( context : ĠContext ?, Ġintent : ĠIntent ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠLog . d ( TAG , Ġ" on Receive Ġaction =${ intent ?. action }") ĊĠĠĠĠĠĠĠ Ġsuper . on Receive ( context , Ġintent ) ĊĊĠĠĠĠĠĠĠ Ġintent ?. getInt Extra ( EXTRA _ NOTIFICATION _ ID , Ġ 0 )?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLog . d ( TAG , Ġ" notification Id : Ġ$ it ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnotification Model . dismiss Alert Notification ( it ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }