-
-
Save fmendes6/ffe7a63a0db61300bfaf to your computer and use it in GitHub Desktop.
Mono2Clean - Domain Service example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PostService implements IPostService{ | |
IPostRepository mRepository; | |
public PostService(IPostRepository mRepository) { | |
this.mRepository = mRepository; | |
} | |
@Override | |
public Observable<Post> getPostById(int postId) { | |
return mRepository.getPostById(postId); | |
} | |
@Override | |
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