загрузила отчеты
This commit is contained in:
parent
03c16aacd7
commit
f67c6d76be
@ -53,9 +53,7 @@ object AppViewModelProvider {
|
|||||||
initializer {
|
initializer {
|
||||||
FindFlightsViewModel(
|
FindFlightsViewModel(
|
||||||
this.createSavedStateHandle(),
|
this.createSavedStateHandle(),
|
||||||
ticketApplication().container.flightRestRepository,
|
ticketApplication().container.flightRestRepository)
|
||||||
ticketApplication().container.appService
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
initializer {
|
initializer {
|
||||||
UserEditViewModel(
|
UserEditViewModel(
|
||||||
|
@ -25,22 +25,22 @@ class FindFlightsViewModel(
|
|||||||
private val from: String = checkNotNull(savedStateHandle["direction_from"])
|
private val from: String = checkNotNull(savedStateHandle["direction_from"])
|
||||||
private val to: String = checkNotNull(savedStateHandle["direction_to"])
|
private val to: String = checkNotNull(savedStateHandle["direction_to"])
|
||||||
private val departureDate: String = checkNotNull(savedStateHandle["departure_date"])
|
private val departureDate: String = checkNotNull(savedStateHandle["departure_date"])
|
||||||
private val appService: AppService
|
// private val appService: AppService
|
||||||
get() {
|
// get() {
|
||||||
return AppService
|
// return AppService
|
||||||
}
|
// }
|
||||||
var foundFlightsList: List<Flight> by mutableStateOf(emptyList())
|
var foundFlightsList: List<Flight> by mutableStateOf(emptyList())
|
||||||
private set
|
private set
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// var foundFlightsUiState by mutableStateOf(FoundFlightsUiState())
|
var foundFlightsUiState by mutableStateOf(FoundFlightsUiState())
|
||||||
// private set
|
private set
|
||||||
|
|
||||||
init {
|
init {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
foundFlightsList = appService.foundFlights().map { it.toFlight() }
|
//foundFlightsList = appService.foundFlights().map { it.toFlight() }
|
||||||
//foundFlightsUiState = FoundFlightsUiState(flightRepository.foundFlights(from, to, departureDate))
|
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