package Ġcom . b iel fer nan de zb . sample beer app . model . repository . local Ċ Ċ import Ġcom . b iel fer nan de zb . sample beer app . model . entities . Be er Ċ import Ġcom . b iel fer nan de zb . sample beer app . model . repository . local . db . Be er Dao Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠLocal DataSource Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġbeer Dao : ĠBe er Dao Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġget Be ers () Ġ= Ġbeer Dao . getAll Be ers () ĊĊĠĠĠ Ġfun Ġsearch Be ers ( search Query : ĠString ) Ġ= Ġbeer Dao . search Be er ( search Query ) ĊĊĠĠĠ Ġfun Ġget Be er ( id : ĠLong ) Ġ= Ġbeer Dao . get Be er ( id ) ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert All ( be ers : ĠList < Be er >) Ġ= Ġbeer Dao . insert All ( be ers ) Ċ }