package Ġcom . alex zh . data . repository Ċ Ċ import Ġcom . alex zh . data . model . C offee Dr ink Entity Ċ import Ġio . reactivex . Comp letable Ċ import Ġio . reactivex . Single Ċ Ċ interface ĠC offee Dr inks Cache Repository Ġ{ ĊĊĠĠĠ Ġfun ĠgetC offee Dr inks (): ĠSingle < List < C offee Dr ink Entity >> ĊĊĠĠĠ Ġfun ĠgetC offee Dr inks ByName ( name : ĠString ): ĠSingle < List < C offee Dr ink Entity >> ĊĊĠĠĠ Ġfun ĠgetC offee ById ( id : ĠLong ): ĠSingle < C offee Dr ink Entity > ĊĊĠĠĠ Ġfun Ġset C offee As F avour ite ( id : ĠLong ): ĠSingle < C offee Dr ink Entity > ĊĊĠĠĠ Ġfun Ġset C offee As Not F avour ite ( id : ĠLong ): ĠSingle < C offee Dr ink Entity > ĊĊĠĠĠ Ġfun Ġsave C offee Dr inks ( coffee Dr inks : ĠList < C offee Dr ink Entity >): ĠComp letable ĊĊĠĠĠ Ġfun Ġclear C offee Dr inks (): ĠComp letable ĊĊĠĠĠ Ġfun Ġare C offee Dr inks Cached (): ĠSingle < Boolean > ĊĊĠĠĠ Ġfun Ġset Last Cache Version ( last Cache Version : ĠLong ): ĠComp letable ĊĊĠĠĠ Ġfun Ġis C offee Dr inks Cache Expired ( last Cache Version : ĠLong ): ĠBoolean Ċ }