tripkit-android / com.skedgo.tripkit.ui.trip.details.viewmodel / OccupancyViewModel

OccupancyViewModel

open class OccupancyViewModel

Constructors

Name Summary
<init> OccupancyViewModel(context: Context)

Properties

Name Summary
background val background: ObservableField<Drawable?>
drawableLeft val drawableLeft: ObservableField<Drawable>
hasOccupancyInformation val hasOccupancyInformation: ObservableBoolean
hasOccupancySingleInformation val hasOccupancySingleInformation: ObservableBoolean
itemBinding val itemBinding: ItemBinding<TrainOccupancyItemViewModel!>
items val items: ObservableList<TrainOccupancyItemViewModel>
occupancyText val occupancyText: ObservableField<String>

Functions

Name Summary
hasInformation fun hasInformation():Boolean
setOccupancy open fun setOccupancy(vehicle:RealTimeVehicle, showAverage:Boolean):Unit