navbar now has a viewModel for each clickable function
This commit is contained in:
		
							parent
							
								
									f5940e4743
								
							
						
					
					
						commit
						a5df9cf191
					
				
					 1 changed files with 28 additions and 1 deletions
				
			
		|  | @ -1,4 +1,31 @@ | |||
| package be.ugent.sel.studeez.screens.navbar | ||||
| 
 | ||||
| class NavigationBarViewModel { | ||||
| import be.ugent.sel.studeez.domain.AccountDAO | ||||
| import be.ugent.sel.studeez.domain.LogService | ||||
| import be.ugent.sel.studeez.navigation.StudeezDestinations | ||||
| import be.ugent.sel.studeez.screens.StudeezViewModel | ||||
| import dagger.hilt.android.lifecycle.HiltViewModel | ||||
| import javax.inject.Inject | ||||
| 
 | ||||
| @HiltViewModel | ||||
| class NavigationBarViewModel @Inject constructor( | ||||
|     private val accountDAO: AccountDAO, | ||||
|     logService: LogService | ||||
| ) : StudeezViewModel(logService) { | ||||
| 
 | ||||
|     fun onHomeClick(openAndPopup: (String, String) -> Unit) { | ||||
|         // TODO | ||||
|     } | ||||
| 
 | ||||
|     fun onTasksClick(openAndPopup: (String, String) -> Unit) { | ||||
|         // TODO | ||||
|     } | ||||
| 
 | ||||
|     fun onSessionsClick(openAndPopup: (String, String) -> Unit) { | ||||
|         // TODO | ||||
|     } | ||||
| 
 | ||||
|     fun onProfileClick(openAndPopup: (String, String) -> Unit) { | ||||
|         // TODO | ||||
|     } | ||||
| } | ||||
		Reference in a new issue