SHARE
TWEET

Untitled

a guest Mar 25th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class GetListOfPostsUseCase
  2. : BaseUseCase<GetListOfPostsUseCase.Params, GetListOfPostsUseCase.Result>() {
  3.  
  4.     override suspend fun doWork(params: Params): Result {
  5.         return Result(
  6.             PostsRepository()
  7.                 .doWork(PostsRepository.Params())
  8.                 .response
  9.                 .posts
  10.         )
  11.     }
  12.  
  13.     class Params
  14.     class Result(val posts: List<Post>?)
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top