package Ġcom . app . mar vel app . data . repository Ċ Ċ import Ġcom . app . mar vel app . data . model . characters . Mar vel Characters Model Ċ import Ġcom . app . mar vel app . data . model . com ics . Com ics Model Ċ import Ġcom . app . mar vel app . data . remote . Resource Ċ import Ġcom . app . mar vel app . data . remote . ServiceClient Instance Ċ import Ġcom . app . mar vel app . utils . Constants Ċ import Ġcom . app . mar vel app . utils . Utils Ċ import Ġcom . app . mar vel app . utils . Utils . safe Api Call Ċ import Ġjava . util .* Ċ Ċ class ĠMar vel Repository Ġ{ ĊĠĠĠ Ġval Ġts Ġ= Ġ( Calendar . getInstance ( TimeZone . getTime Zone (" UTC ")). time In Millis Ġ/ Ġ 1 0 0 0 L ). toString () ĊĠĠĠ Ġval Ġhash Ġ= ĠUtils . md 5 ( ts + ĠConstants . API _ PRIVATE _ KEY + ĠConstants . API _ PUBLIC _ KEY ) ĊĊĠĠĠ Ġsuspend Ġfun Ġget Characters ( offset : ĠInt ): ĠResource < Mar vel Characters Model > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsafe Api Call ( call Ġ= Ġ{ ĠService Client Instance . getInstance (). api . get Characters ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġts Ġ= Ġts , Ġhash Ġ= Ġhash , Ġoffset Ġ= Ġoffset ĊĠĠĠĠĠĠĠ Ġ) Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget Com ics ( character Id : ĠInt , Ġdate Range : ĠString ): ĠResource < Com ics Model > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsafe Api Call ( call Ġ= Ġ{ ĠService Client Instance . getInstance (). api . get Com ics ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġts Ġ= Ġts , Ġhash Ġ= Ġhash , Ġcharacter Id Ġ= Ġcharacter Id , Ġdate Range Ġ= Ġdate Range ĊĠĠĠĠĠĠĠ Ġ) Ġ}) ĊĠĠĠ Ġ} Ċ Ċ }