/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.timetables/ServiceViewModel

ServiceViewModel

\ abstract class ServiceViewModel : RxViewModel

Constructors

ServiceViewModel constructor()

Properties

Name Summary
alpha abstract val alpha: MutableLiveData<Float>
countDownTimeText abstract val countDownTimeText: MutableLiveData<String>
countDownTimeTextBack abstract val countDownTimeTextBack: MutableLiveData<Drawable>
countDownTimeTextColor abstract val countDownTimeTextColor: MutableLiveData<Int>
dateTimeZone abstract var dateTimeZone: DateTimeZone
isCurrentTrip abstract val isCurrentTrip: MutableLiveData<Boolean>
modeInfo abstract val modeInfo: MutableLiveData<ModeInfo>
occupancyViewModel abstract val occupancyViewModel: OccupancyViewModel
onAlertsClick abstract val onAlertsClick: TapAction<List<RealtimeAlert>?>
onItemClick abstract val onItemClick: TapAction<TimetableEntry>
quaternaryText abstract val quaternaryText: MutableLiveData<String>
secondaryText abstract val secondaryText: MutableLiveData<String>
secondaryTextColor abstract val secondaryTextColor: MutableLiveData<Int>
service abstract var service: TimetableEntry
serviceAlertViewModel abstract val serviceAlertViewModel: ServiceAlertViewModel
serviceColor abstract val serviceColor: MutableLiveData<Int>
serviceNumber abstract val serviceNumber: MutableLiveData<String>
showBicycleAccessible abstract val showBicycleAccessible: MutableLiveData<Boolean>
showOccupancyInfo abstract val showOccupancyInfo: MutableLiveData<Boolean>
tertiaryText abstract val tertiaryText: MutableLiveData<String>
wheelchairIcon abstract val wheelchairIcon: MutableLiveData<Drawable?>
wheelchairTint abstract val wheelchairTint: MutableLiveData<Int>

Functions

Name Summary
autoClear fun <T> Observable<T>.autoClear(): Observable<T>
fun Disposable.autoClear()
getRealTimeDeparture abstract fun getRealTimeDeparture(): Long
onCleared open override fun onCleared()
This method will be called when this ViewModel is no longer used and will be destroyed.
setService abstract fun setService(_currentTripId: String, _service: TimetableEntry, _dateTimeZone: DateTimeZone)