/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.trippreview/TripPreviewHeaderViewModel
TripPreviewHeaderViewModel
\ class TripPreviewHeaderViewModel@Injectconstructor : RxViewModel
Constructors
TripPreviewHeaderViewModel | @Inject constructor() |
Properties
Name | Summary |
---|---|
description | val description: LiveData<String> |
isHideExactTimes | val isHideExactTimes: LiveData<Boolean> |
itemBinding | val itemBinding: ItemBinding<TripSegmentSummaryItemViewModel> |
items | val items: ObservableArrayList<TripSegmentSummaryItemViewModel> |
quickBookingSegment | val quickBookingSegment: LiveData<TripSegment?> |
selectedSegmentId | val selectedSegmentId: LiveData<Pair<Long, String>> |
showDescription | val showDescription: LiveData<Boolean> |
Functions
Name | Summary |
---|---|
autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
setHideExactTimes | fun setHideExactTimes(value: Boolean) |
setSelectedById | fun setSelectedById(segmentId: Long, modeId: String? = null) |
setup | fun setup(context: Context, data: TripSegmentsSummaryData) |