tripkit-android / com.skedgo.tripkit.ui.servicedetail / ServiceDetailViewModel
ServiceDetailViewModel
class ServiceDetailViewModel :
RxViewModel
Constructors
Name | Summary |
---|---|
<init> | ServiceDetailViewModel(context: Context, occupancyViewModel: OccupancyViewModel , serviceViewModelProvider: Provider< ServiceDetailItemViewModel >, serviceAlertViewModel: ServiceAlertViewModel , loadServices: LoadServices , getServiceTitleText: GetServiceTitleText , getServiceSubTitleText: GetServiceSubTitleText , getServiceTertiaryText: GetServiceTertiaryText , getRealtimeText: GetRealtimeText , errorLogger: ErrorLogger ) |
Properties
Name | Summary |
---|---|
itemBinding | val itemBinding: ItemBinding< ServiceDetailItemViewModel !> |
items | val items: ObservableField< List < ServiceDetailItemViewModel >> |
occupancyViewModel | val occupancyViewModel: OccupancyViewModel |
onItemClicked | val onItemClicked: PublishRelay< ServiceStop !> |
secondaryText | val secondaryText: ObservableField< String > |
secondaryTextColor | val secondaryTextColor: ObservableInt |
serviceAlertViewModel | val serviceAlertViewModel: ServiceAlertViewModel |
serviceColor | val serviceColor: ObservableInt |
serviceNumber | val serviceNumber: ObservableField< String > |
showOccupancyInfo | val showOccupancyInfo: ObservableBoolean |
showWheelchairAccessible | val showWheelchairAccessible: ObservableBoolean |
stationName | val stationName: ObservableField< String > |
stop | var stop: ScheduledStop ? |
tertiaryText | val tertiaryText: ObservableField< String > |
timetableEntry | var timetableEntry: TimetableEntry ? |
wheelchairAccessibleText | val wheelchairAccessibleText: ObservableField< String > |
wheelchairIcon | val wheelchairIcon: ObservableField<Drawable?> |
Functions
Name | Summary |
---|---|
onCleared | This method will be called when this ViewModel is no longer used and will be destroyed.fun onCleared(): Unit |
setup | fun setup(_stop: ScheduledStop , _entry: TimetableEntry ): Unit |