/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.tripresults/TripResultViewModel

TripResultViewModel

\ class TripResultViewModel@Injectconstructor(context: Context, tripSegmentHelper: TripSegmentHelper, printTime: PrintTime, resources: Resources, transportModeSharedPreference: TransportModeSharedPreference) : RxViewModel

Constructors

TripResultViewModel @Inject
constructor(context: Context, tripSegmentHelper: TripSegmentHelper, printTime: PrintTime, resources: Resources, transportModeSharedPreference: TransportModeSharedPreference)

Properties

Name Summary
accessibilityLabel var accessibilityLabel: MutableLiveData<String>
actionButtonHandler var actionButtonHandler: ActionButtonHandler?
alternateTripVisible val alternateTripVisible: MutableLiveData<Boolean>
availabilityInfo val availabilityInfo: LiveData<String>
badgeDrawable val badgeDrawable: LiveData<Drawable?>
badgeText val badgeText: LiveData<String?>
badgeTextColor val badgeTextColor: LiveData<Int?>
badgeVisible val badgeVisible: LiveData<Boolean>
classification var classification: TripGroupClassifier.Classification
clickFlow var clickFlow: MutableSharedFlow<Trip>?
cost val cost: MutableLiveData<String>
costVisible val costVisible: MutableLiveData<Boolean>
group lateinit var group: TripGroup
hasTripLabels val hasTripLabels: MutableLiveData<Boolean>
isActionEnabled val isActionEnabled: LiveData<Boolean>
isMoneyCostVisible val isMoneyCostVisible: LiveData<Boolean>
moneyCost val moneyCost: LiveData<String>
moreButtonText var moreButtonText: MutableLiveData<String>
moreButtonVisible val moreButtonVisible: MutableLiveData<Boolean>
onItemClicked val onItemClicked: TapAction<TripResultViewModel>
onMoreButtonClicked val onMoreButtonClicked: TapAction<TripResultViewModel>
otherTripGroups var otherTripGroups: List<Trip>?
quickBookingActionClickFlow var quickBookingActionClickFlow: MutableSharedFlow<TripSegment>?
showMoreTrips val showMoreTrips: MutableLiveData<Boolean>
trip lateinit var trip: Trip
tripResults val tripResults: MutableLiveData<MutableList<TripResultTripViewModel>>

Functions

Name Summary
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
equals open operator override fun equals(other: Any?): Boolean
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
setTripGroup fun setTripGroup(context: Context, tripgroup: TripGroup, classification: TripGroupClassifier.Classification?)
toggleShowMore fun toggleShowMore()