package Ġcom . open class rooms . re ale state manager . utils . extensions Ċ Ċ import Ġcom . open class rooms . re ale state manager . data . entity . Property With All Data Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠMut w ak il - Mo ĠðŁ¤ © Ċ Ġ* ĠAndroid ĠEngineer , Ċ Ġ* ĠBr us se ls Ċ Ġ*/ Ċ Ċ fun ĠList < Property With All Data >. keep Properties With All A men ity Requested ( number A men ities : ĠInt ): ĠList < Property With All Data >{ ĊĠĠĠ Ġval Ġid Property To Keep Ġ= Ġthis ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. grouping By Ġ{ Ġit . property . id Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. each Count () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. filter Values Ġ{ Ġit Ġ== Ġnumber A men ities Ġ}. keys ĊĠĠĠ Ġval Ġproperty To Display Ġ= Ġmutable ListOf < Property With All Data >() ĊĠĠĠ Ġid Property To Keep . forEach Ġ{ Ġid Ġ-> ĊĠĠĠĠĠĠĠ Ġthis . find Ġ{ Ġit . property . id Ġ== Ġid Ġ} ?. let { Ġproperty To Display . add ( it ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġreturn Ġproperty To Display Ċ }