tripkit-android / com.skedgo.tripkit.ui.tripresults / TripResultViewModel
TripResultViewModel
class TripResultViewModel :
RxViewModel
Constructors
Name | Summary |
---|---|
<init> | TripResultViewModel(context: Context, tripSegmentHelper: TripSegmentHelper , printTime: PrintTime , resources: Resources) |
Properties
Name | Summary |
---|---|
alternateSegments | val alternateSegments: ArrayList < TripSegmentViewModel > |
alternateSubtitle | val alternateSubtitle: ObservableField< String > |
alternateTitle | val alternateTitle: ObservableField< String > |
alternateTitleVisible | val alternateTitleVisible: ObservableBoolean |
alternateTripVisible | val alternateTripVisible: ObservableBoolean |
badgeDrawable | val badgeDrawable: ObservableField<Drawable> |
badgeText | val badgeText: ObservableField< String > |
badgeTextColor | val badgeTextColor: ObservableInt |
badgeVisible | val badgeVisible: ObservableBoolean |
cost | val cost: ObservableField< String > |
costVisible | val costVisible: ObservableBoolean |
group | lateinit var group: TripGroup |
moreButtonText | val moreButtonText: ObservableField< String > |
moreButtonVisible | val moreButtonVisible: ObservableBoolean |
onItemClicked | val onItemClicked: TapAction < TripResultViewModel > |
onMoreButtonClicked | val onMoreButtonClicked: TapAction < TripResultViewModel > |
otherTripGroups | var otherTripGroups: List < Trip >? |
segments | val segments: ArrayList < TripSegmentViewModel > |
subtitle | val subtitle: ObservableField< String > |
title | val title: ObservableField< String > |
titleVisible | val titleVisible: ObservableBoolean |
trip | lateinit var trip: Trip |
Functions
Name | Summary |
---|---|
moreButtonClicked | fun moreButtonClicked(): Unit |
setTripGroup | fun setTripGroup(context: Context, tripgroup: TripGroup , classification: Classification): Unit |