package Ġio . horizontal systems . bank wallet . modules . wallet connect . storage Ċ Ċ import Ġio . horizontal systems . bank wallet . core . storage . App Database Ċ import Ġio . horizontal systems . bank wallet . modules . wallet connect . entity . Wallet Connect V 2 Session Ċ Ċ class ĠWC 2 Session Storage ( app Database : ĠApp Database ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġdao : ĠWC 2 Session Dao Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ Ġapp Database . wc 2 Session Dao () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠgetAll Sessions (): ĠList < Wallet Connect V 2 Session > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdao . getAll () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Sessions By AccountId ( accountId : ĠString ): ĠList < Wallet Connect V 2 Session > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdao . getBy AccountId ( accountId ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsave ( sessions : ĠList < Wallet Connect V 2 Session >) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . insert ( sessions ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdelete Sessions Except ( account Ids : ĠList < String > Ġ= ĠlistOf ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . delete All Except ( account Ids ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdelete Sessions By Topics ( topics : ĠList < String > Ġ= ĠlistOf ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . delete By Topics ( topics ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ