package Ġcom . so yle . stories . location . location Details . present ers Ċ Ċ import Ġcom . so yle . stories . domain . location . Location Ċ import Ġcom . so yle . stories . domain . location . events . Hosted Scene Rename d Ċ import Ġcom . so yle . stories . location . hosted Scene . Hosted Scene Rename d Receiver Ċ import Ġcom . so yle . stories . location . location Details . Hosted Scene Item ViewModel Ċ import Ġcom . so yle . stories . location . location Details . Location Details ViewModel Ċ Ċ class ĠHost ed Scene Rename d Presenter ( ĊĠĠĠ Ġprivate Ġval Ġlocation Id : ĠLocation . Id , ĊĠĠĠ Ġprivate Ġval Ġview : ĠLocation Details ViewModel Ċ ) Ġ: ĠHost ed Scene Rename d Receiver Ġ{ ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġreceive Hosted Sc enes Rename d ( events : ĠList < Hosted Scene Rename d >) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrelevant Events Ġ= Ġevents . filter Ġ{ Ġit . location Id Ġ== Ġlocation Id Ġ} ĊĠĠĠĠĠĠĠ Ġif Ġ( relevant Events . isEmpty ()) Ġreturn ĊĠĠĠĠĠĠĠ Ġval Ġevents By Scene Id Ġ= Ġrelevant Events . associate By Ġ{ Ġit . scene Id Ġ} ĊĠĠĠĠĠĠĠ Ġwith ( view ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġupdate Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfor Ġ( hosted Scene Ġin Ġhosted Sc enes ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġrelated Event Ġ= Ġevents By Scene Id . get ( hosted Scene . scene Id ) Ġ?: Ġcontinue ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġhosted Scene . name Ġ= Ġrelated Event . new Name ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ