package Ġcom . decimal ab . easy task . model . repository Ċ Ċ import Ġcom . decimal ab . easy task . model . local . db . App Database Ċ import Ġcom . decimal ab . easy task . model . local . entity . Task Entity Ċ import Ġcom . decimal ab . easy task . model . remote . Network Service Ċ import Ġcom . decimal ab . easy task . model . remote . request . task . Delete TaskRequest Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSh ak il ĠAh med ĠSh aj Ġon Ġ 3 0 , April , 2 0 2 0 . Ċ Ġ* Ġsh ak il ah med sh aj @ gmail . com Ċ Ġ*/ Ċ class ĠDelete Task Repository ( ĊĠĠĠ Ġprivate Ġval Ġnetwork Service : ĠNetwork Service , ĊĠĠĠ Ġprivate Ġval Ġapp Database : ĠApp Database Ċ ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Task From Api ( token : ĠString , Ġdelete TaskRequest : ĠDelete TaskRequest ) Ġ= ĊĠĠĠĠĠĠĠ Ġnetwork Service . delete Task ( token , Ġdelete TaskRequest ) ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Task From Db ( task Entity : ĠTask Entity ) Ġ= Ġapp Database . task Dao (). delete ( task Entity ) ĊĊĠĠĠ Ġsuspend Ġfun Ġdelete From Db ( taskId : ĠString ) Ġ= Ġapp Database . task Dao (). delete Task From Db ( taskId ) Ċ }