package Ġcom . con cord ium . wallet . ui . identity . identity details Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcom . con cord ium . wallet . data . Identity Repository Ċ import Ġcom . con cord ium . wallet . data . model . Identity Container Ċ import Ġcom . con cord ium . wallet . data . room . Identity Ċ import Ġcom . con cord ium . wallet . data . room . Wallet Database Ċ Ċ class ĠIdentity Details ViewModel ( application : ĠApplication ) Ġ: ĠAndroid ViewModel ( application ) Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġidentity : ĠIdentity ĊĊĠĠĠ Ġprivate Ġval Ġidentity Repository : ĠIdentity Repository ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġidentity Dao Ġ= ĠWallet Database . get Database ( application ). identity Dao () ĊĠĠĠĠĠĠĠ Ġidentity Repository Ġ= ĠIdentity Repository ( identity Dao ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġinitialize ( identity : ĠIdentity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . identity Ġ= Ġidentity ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġremove Identity ( identity : ĠIdentity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġidentity Repository . delete ( identity ) ĊĠĠĠ Ġ} Ċ }