Created
June 10, 2021 23:28
-
-
Save Nyame123/e01b0af6fb013e4e08c407391c79e782 to your computer and use it in GitHub Desktop.
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
@HiltViewModel | |
class MainActivityViewModel @Inject constructor(private val appDatabase: AppDatabase): ViewModel(){ | |
fun getDatabase(): List<Readings?>? { | |
return appDatabase.readingDao()!!.filterReadings("%%") | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment