tripkit-android / com.skedgo.tripkit.ui.timetables / TimetableViewModel

TimetableViewModel

class TimetableViewModel :RxViewModel

Constructors

Name Summary
<init> TimetableViewModel(realTimeChoreographer:RealTimeChoreographer, fetchAndLoadTimetable:FetchAndLoadTimetable, serviceViewModelProvider: Provider<ServiceViewModel>, regionService:RegionService, getNow:GetNow, resources: Resources)

Properties

Name Summary
downloadTimetable val downloadTimetable: PublishRelay<Long>
filter val filter: BehaviorRelay<String>
itemBinding val itemBinding: ItemBinding<ServiceViewModel!>
minStartTime val minStartTime: Observable<Long!>!
onAlertClicks val onAlertClicks: Observable<ArrayList<RealtimeAlert>>
onDateChanged val onDateChanged: PublishRelay<Long>
onServiceClick val onServiceClick: Observable<Triple<TimetableEntry,ScheduledStop,Long!>!>!
scrollToNow val scrollToNow: PublishRelay<Int>
serviceItemBinding val serviceItemBinding: ItemBinding<TimetableHeaderLineItem!>
serviceNumbers val serviceNumbers: ObservableField<List<TimetableHeaderLineItem>>
services val services: ObservableField<List<ServiceViewModel>>
showError val showError: PublishRelay<String>
showLoading val showLoading: ObservableBoolean
stationName val stationName: ObservableField<String>
stationType val stationType: ObservableField<String>
stop var stop: BehaviorRelay<ScheduledStop>

Functions

Name Summary
downloadMoreTimetableAsync fun downloadMoreTimetableAsync():Unit
getFirstNowPosition fun getFirstNowPosition():Int
onCleared This method will be called when this ViewModel is no longer used and will be destroyed.fun onCleared():Unit
setText fun setText():Unit