package Ġcom . ad ject iv emon k 2 . pixels . database . session . impl Ċ Ċ import Ġcom . squareup . sql de light . Column Adapter Ċ import Ġjavax . inject . Inject Ċ import Ġkotlin . time . Duration Ċ import Ġkotlin . time . Duration Unit Ċ import Ġkotlin . time . to Duration Ċ Ċ public Ġclass ĠDuration Column Adapter Ġ@ Inject Ġconstructor () Ġ: ĠColumn Adapter < Duration , ĠLong > Ġ{ ĊĠ Ġoverride Ġfun Ġdecode ( database Value : ĠLong ): ĠDuration Ġ{ ĊĠĠĠ Ġreturn Ġdatabase Value . to Duration ( Duration Unit . SECONDS ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġencode ( value : ĠDuration ): ĠLong Ġ{ ĊĠĠĠ Ġreturn Ġvalue . to Long ( Duration Unit . SECONDS ) ĊĠ Ġ} Ċ } Ċ