package Ġcom . github . k amil 1 3 3 8 . recording _ app . storage _ use _ case Ċ Ċ import Ġcom . github . k amil 1 3 3 8 . activity _ recognition _ core . core . Activity Type Ċ import Ġio . reactivex . Single Ċ Ċ class ĠData Count Fetch UseCase Impl ( ĊĠĠĠ Ġprivate Ġval Ġaccel erometer Data Dao : ĠAcc eler ometer Data Dao Ċ ) Ġ: ĠData Count UseCase Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġdata Count ( activity Type : ĠActivity Type ): ĠSingle < Long > Ġ= ĊĠĠĠĠĠĠĠ ĠSingle . from Callable Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccel erometer Data Dao . getData Count For ( activity Type . name ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġrecording Count ( activity Type : ĠActivity Type ): ĠSingle < Long > Ġ= ĊĠĠĠĠĠĠĠ ĠSingle . from Callable Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaccel erometer Data Dao . get Recording Count For ( activity Type . name ) ĊĠĠĠĠĠĠĠ Ġ} Ċ }