загрузила отчеты
This commit is contained in:
parent
03c16aacd7
commit
f67c6d76be
@ -53,9 +53,7 @@ object AppViewModelProvider {
|
||||
initializer {
|
||||
FindFlightsViewModel(
|
||||
this.createSavedStateHandle(),
|
||||
ticketApplication().container.flightRestRepository,
|
||||
ticketApplication().container.appService
|
||||
)
|
||||
ticketApplication().container.flightRestRepository)
|
||||
}
|
||||
initializer {
|
||||
UserEditViewModel(
|
||||
|
@ -25,22 +25,22 @@ class FindFlightsViewModel(
|
||||
private val from: String = checkNotNull(savedStateHandle["direction_from"])
|
||||
private val to: String = checkNotNull(savedStateHandle["direction_to"])
|
||||
private val departureDate: String = checkNotNull(savedStateHandle["departure_date"])
|
||||
private val appService: AppService
|
||||
get() {
|
||||
return AppService
|
||||
}
|
||||
// private val appService: AppService
|
||||
// get() {
|
||||
// return AppService
|
||||
// }
|
||||
var foundFlightsList: List<Flight> by mutableStateOf(emptyList())
|
||||
private set
|
||||
|
||||
|
||||
|
||||
// var foundFlightsUiState by mutableStateOf(FoundFlightsUiState())
|
||||
// private set
|
||||
var foundFlightsUiState by mutableStateOf(FoundFlightsUiState())
|
||||
private set
|
||||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
foundFlightsList = appService.foundFlights().map { it.toFlight() }
|
||||
//foundFlightsUiState = FoundFlightsUiState(flightRepository.foundFlights(from, to, departureDate))
|
||||
//foundFlightsList = appService.foundFlights().map { it.toFlight() }
|
||||
foundFlightsUiState = FoundFlightsUiState(flightRepository.foundFlights(from, to, departureDate))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №1.docx
Normal file
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №1.docx
Normal file
Binary file not shown.
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №2.docx
Normal file
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №2.docx
Normal file
Binary file not shown.
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №3.docx
Normal file
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №3.docx
Normal file
Binary file not shown.
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №4.docx
Normal file
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №4.docx
Normal file
Binary file not shown.
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №5.docx
Normal file
BIN
ОТЧЕТЫ/ПМУ Лабораторная работа №5.docx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user