package Ġcom . robert . android . lost pe ts . presentation . ui . broadcast s . impl Ċ Ċ import Ġandroid . content . Broadcast Receiver Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġcom . robert . android . lost pe ts . domain . model . Message Ċ import Ġcom . robert . android . lost pe ts . presentation . ui . broadcast s . Message Receiver Ċ Ċ /** Ċ Ġ* ĠCl ase Ġque Ġext ien de Ġla Ġclase ĠBroadcast Receiver Ġe Ġimplement a Ġla Ġinterf az ĠMessage Receiver . ĠSe Ċ Ġ* Ġenc arga Ġde Ġtransmit ir Ġmens ajes Ġal Ġservicio Ġde Ġmens aj er ÃŃa , Ġsi emp re Ġque Ġse Ġenc uent re Ġsus crit o . Ċ Ġ* Ċ Ġ* Ġ@ author ĠRobert ĠE ne Ċ Ġ* Ġ@ see Ġcom . robert . android . lost pe ts . presentation . ui . broadcast s . Message Receiver Ċ Ġ*/ Ċ class ĠMessaging Service Broadcast Receiver Impl ( message Receiver : ĠMessage Receiver ) Ġ: ĠBroadcast Receiver () Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠACTION Ġ= Ġ" Messaging Service Broadcast Receiver Impl :: Action " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠMESSAGE Ġ= Ġ" Messaging Service Broadcast Receiver Impl :: Message " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġm Message Receiver : ĠMessage Receiver Ġ= Ġmessage Receiver ĊĊĠĠĠ Ġoverride Ġfun Ġon Receive ( context : ĠContext ?, Ġintent : ĠIntent ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( intent ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis ?. get Parcelable Extra < Message >( MESSAGE )?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġm Message Receiver . on Message ( it ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ