tripkit-android / com.skedgo.tripkit.ui.tripresults / TripResultListViewModel
TripResultListViewModel
class TripResultListViewModel :
RxViewModel
Constructors
Name | Summary |
---|---|
<init> | TripResultListViewModel(context: Context, tripGroupRepository: TripGroupRepository, routingStatusRepositoryLazy: Lazy< RoutingStatusRepository >, tripResultViewModelProvider: Provider< TripResultViewModel >, getSortedTripGroupsWithRoutingStatusProvider: Provider< GetSortedTripGroupsWithRoutingStatus >, tripResultTransportItemViewModelProvider: Provider< TripResultTransportItemViewModel >, regionService: RegionService , routeService: RouteService , transitModeFilter: TransitModeFilter , errorLogger: ErrorLogger , getTransportModePreferencesByRegion: GetTransportModePreferencesByRegion , sorterProvider: Provider< TripGroupsSorter >, isModeIncludedInTripsRepository: IsModeIncludedInTripsRepository, performRouting: PerformRouting , routingTimeViewModelMapper: RoutingTimeViewModelMapper ) |
Properties
Name | Summary |
---|---|
fromName | val fromName: ObservableField< String > |
isLoading | val isLoading: ObservableBoolean |
itemBinding | val itemBinding: ItemBinding< TripResultViewModel !> |
onItemClicked | val onItemClicked: PublishRelay<ViewTrip!> |
query | lateinit var query: Query |
results | val results: DiffObservableList< TripResultViewModel > |
showTransport | val showTransport: ObservableBoolean |
timeLabel | val timeLabel: ObservableField< String > |
toName | val toName: ObservableField< String > |
transportBinding | val transportBinding: ItemBinding< TripResultTransportItemViewModel !> |
transportModes | val transportModes: ObservableField< List < TripResultTransportItemViewModel >> |
Functions
Name | Summary |
---|---|
changeQuery | fun changeQuery(newQuery: Query ): Unit |
getTransport | fun getTransport(): Unit |
load | fun load(): Unit |
loadFromStore | fun loadFromStore(): Unit |
reload | fun reload(): Unit |
setTimeLabel | fun setTimeLabel(): Unit |
setup | fun setup(_query: Query ): Unit |
transportLayoutClicked | fun transportLayoutClicked(view: View): Unit |
updateQueryTime | fun updateQueryTime(timeTag: TimeTag ): Unit |