package Ġcom . pr at th amar ora . fit _ t astic . repository Ċ Ċ import Ġcom . pr at th amar ora . fit _ t astic . db . Run Ċ import Ġcom . pr at th amar ora . fit _ t astic . db . Run Dao Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠMain Repository Ġ@ Inject Ġconstructor ( private Ġval Ġrun Dao : ĠRun Dao ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġinsert Run ( run : ĠRun ) Ġ= Ġrun Dao . insert Run ( run ) ĊĠĠĠ Ġsuspend Ġfun Ġdelete Run ( run : ĠRun ) Ġ= Ġrun Dao . delete Run ( run ) ĊĊĠĠĠ Ġfun ĠgetAll Run Sort By Date () Ġ= Ġrun Dao . getAll Run By Date () ĊĠĠĠ Ġfun ĠgetAll Run Sort By Cal ories () Ġ= Ġrun Dao . getAll Run By Cal ories () ĊĠĠĠ Ġfun ĠgetAll Run Sort By Distance () Ġ= Ġrun Dao . getAll Run By Distance () ĊĠĠĠ Ġfun ĠgetAll Run Sort By Speed () Ġ= Ġrun Dao . getAll Run By Speed () ĊĠĠĠ Ġfun ĠgetAll Run Sort By TimeIn Ms () Ġ= Ġrun Dao . getAll Run By TimeIn Ms () ĊĊĠĠĠ Ġfun ĠgetTotal Avg Speed () Ġ= Ġrun Dao . getTotal Speed () ĊĠĠĠ Ġfun ĠgetTotal Cal ories () Ġ= Ġrun Dao . getTotal Cal ories () ĊĠĠĠ Ġfun ĠgetTotal Distance () Ġ= Ġrun Dao . getTotal Distance () ĊĠĠĠ Ġfun ĠgetTotal Time () Ġ= Ġrun Dao . getTotal Time () Ċ }