package Ġcom . da im ler . mb c ark it . pers istance Ċ Ċ import Ġcom . da im ler . mb c ark it . business . Send To Car Cache Ċ import Ġcom . da im ler . mb c ark it . business . model . send to car . Send To Car Capabilities Ċ import Ġcom . da im ler . mb c ark it . pers istance . model . Realm Send To Car Capability Ċ import Ġcom . da im ler . mb c ark it . pers istance . model . to Send To Car Capabilities Ċ import Ġio . realm . Realm Ċ import Ġio . realm . Realm List Ċ import Ġio . realm . kotlin . createObject Ċ import Ġio . realm . kotlin . delete Ċ import Ġio . realm . kotlin . where Ċ Ċ internal Ġclass ĠRealm Send To Car Cache ( private Ġval Ġrealm : ĠRealm ) Ġ: ĠSend To Car Cache Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġload Capabilities ( fin Or V in : ĠString ): ĠSend To Car Capabilities ? Ġ= ĊĠĠĠĠĠĠĠ Ġrealm Capabilities ( realm , Ġfin Or V in )?. to Send To Car Capabilities () ĊĊĠĠĠ Ġoverride Ġfun Ġsave Capabilities ( fin Or V in : ĠString , Ġcapabilities : ĠSend To Car Capabilities ) Ġ{ ĊĠĠĠĠĠĠĠ Ġrealm . execute Transaction Ġ{ Ġr Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrealm Capabilities ( r , Ġfin Or V in )?. delete From Realm () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġr . createObject < Realm Send To Car Capability >( fin Or V in ). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġthis . capabilities Ġ= ĠRealm List < Int >(). apply Ġ{ Ġadd All ( capabilities . capabilities . map Ġ{ Ġit . ordinal Ġ}) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġthis . pre conditions Ġ= ĠRealm List < Int >(). apply Ġ{ Ġadd All ( capabilities . pre conditions . map Ġ{ Ġit . ordinal Ġ}) Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġr . copy To Realm OrUpdate ( this ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdelete Capabilities ( fin Or V in : ĠString ) Ġ= ĊĠĠĠĠĠĠĠ Ġrealm . execute Transaction Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrealm Capabilities ( it , Ġfin Or V in )?. delete From Realm () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdelete All Capabilities () Ġ= ĊĠĠĠĠĠĠĠ Ġrealm . execute Transaction Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . delete < Realm Send To Car Capability >() ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġrealm Capabilities ( realm : ĠRealm , Ġfin Or V in : ĠString ) Ġ= ĊĠĠĠĠĠĠĠ Ġrealm . where < Realm Send To Car Capability >() ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. equalTo ( Realm Send To Car Capability . FIELD _ V IN , Ġfin Or V in ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. findFirst () Ċ } Ċ