tripkit-android / com.skedgo.tripkit.ui.tripresult / TripResultPagerViewModel

TripResultPagerViewModel

class TripResultPagerViewModel :RxViewModel

Properties

Name Summary
currentPage val currentPage: ObservableInt
fetchingRealtimeStatus val fetchingRealtimeStatus: ObservableBoolean
selectedTripGroup val selectedTripGroup: Observable<TripGroup>
tripGroupsBinding val tripGroupsBinding: ObservableField<List<TripGroup>>
tripSource val tripSource: BehaviorRelay<TripSource!>

Functions

Name Summary
getSortedTripGroups fun getSortedTripGroups(args: PagerFragmentArguments): Observable<Unit>
loadFetchingRealtimeStatus fun loadFetchingRealtimeStatus(): Observable<Boolean>
observeInitialPage fun observeInitialPage(): Observable<Unit>
observeTripGroups fun observeTripGroups(): Observable<Unit>
onCreate fun onCreate(savedInstanceState: Bundle?):Unit
onSavedInstanceState fun onSavedInstanceState(outState: Bundle):Unit
onStart fun onStart():Unit
onStop fun onStop():Unit
setInitialSelectedTripGroupId fun setInitialSelectedTripGroupId(tripGroupId:String):Unit
trackViewingTrip fun trackViewingTrip(): Observable<Unit>
updateSelectedTripGroup fun updateSelectedTripGroup(): Observable<Unit>