Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Mono2Clean - Domain Service example
public class PostService implements IPostService{
IPostRepository mRepository;
public PostService(IPostRepository mRepository) {
this.mRepository = mRepository;
public Observable<Post> getPostById(int postId) {
return mRepository.getPostById(postId);
public Observable<List<Comment>> getPostComments(int postId) {
return mRepository.getPostComments(postId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment