Last active
August 14, 2018 16:03
-
-
Save catalinghita8/30fdf2ee67f8702be799a8fefde50636 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @AppScoped | |
| public class MessageViewModel extends ViewModel{ | |
| @NonNull | |
| private final MessageRepository mRepository; | |
| @Inject | |
| public MessageViewModel(@NonNull MessageRepository repository) { | |
| this.mRepository = repository; | |
| } | |
| @NonNull | |
| public MessageUiModel getUiModel(){ | |
| return new MessageUiModel(mRepository.getData()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment