package Ġcom . ak in ci . chat ter . feature . ac om mon . data . local . dao Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ import Ġcom . ak in ci . chat ter . feature . ac om mon . data . local . entities . User Entity Ċ Ċ @ Dao Ċ interface ĠUser Dao Ġ{ ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert User ( user Entity Ġ: ĠUser Entity ) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġinsert All Users ( users Ġ: ĠList < User Entity >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġuser Table ĠWHERE Ġnickname = Ġ: userName ") ĊĠĠĠ Ġsuspend Ġfun ĠgetUser ( userName : ĠString ): ĠUser Entity ? ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġuser Table ĠWHERE Ġnickname = Ġ: userName ĠAND Ġlogged Id User Ġ= Ġ: logged In User ") ĊĠĠĠ Ġsuspend Ġfun Ġget LoggedIn User ( userName : ĠString , Ġlogged In User : ĠBoolean Ġ= Ġtrue ): ĠUser Entity ? Ċ Ċ }