package Ġcom . wise ass blog . domain . inter actor Ċ Ċ import Ġcom . wise ass blog . domain . service locator . Note Service Locator Ċ import Ġcom . wise ass blog . domain . domain model . Note Ċ import Ġcom . wise ass blog . domain . domain model . Result Ċ Ċ class ĠAn onymous Note Source Ġ{ ĊĠĠĠ Ġsuspend Ġfun Ġget Notes ( locator : ĠNote Service Locator ): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult < Exception , ĠList < Note >> Ġ= Ġlocator . local An on . get Notes () ĊĊĠĠĠ Ġsuspend Ġfun Ġget Note ById ( id : ĠString , Ġlocator : ĠNote Service Locator ): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult < Exception , ĠNote ?> Ġ= Ġlocator . local An on . get Note ( id ) ĊĊĠĠĠ Ġsuspend Ġfun Ġupdate Note ( note : ĠNote , Ġlocator : ĠNote Service Locator ): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult < Exception , ĠUnit > Ġ= Ġlocator . local An on . update Note ( note ) ĊĊĊĠĠĠ Ġsuspend Ġfun Ġdelete Note ( note : ĠNote , Ġlocator : ĠNote Service Locator ): ĊĠĠĠĠĠĠĠĠĠĠĠ ĠResult < Exception , ĠUnit > Ġ= Ġlocator . local An on . delete Note ( note ) Ċ Ċ }