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

TripSegmentsViewModel

class TripSegmentsViewModel :RxViewModel

Properties

Name Summary
arriveAtTitle var arriveAtTitle: ObservableField<String>
durationTitle var durationTitle: ObservableField<String>
itemBinding val itemBinding: ItemBinding<Any!>
itemViewModels val itemViewModels: ObservableField<MutableList<Any!>!>
segmentViewModels val segmentViewModels:MutableList<TripSegmentItemViewModel>
timeZoneId val timeZoneId:String
tripGroup var tripGroup:TripGroup
tripGroupObservable val tripGroupObservable: Observable<TripGroup>

Functions

Name Summary
findSegmentPosition fun findSegmentPosition(tripSegment:TripSegment):Int
loadTripGroup fun loadTripGroup(tripGroupId:String, savedInstanceState: Bundle?):Unit
onCleared This method will be called when this ViewModel is no longer used and will be destroyed.fun onCleared():Unit
onStart fun onStart():Unit
onStop fun onStop():Unit
setInternalBus fun setInternalBus(bus: Bus):Unit