/tripkit/TripKitAndroidUI/com.skedgo.tripkit.ui.trippreview/TripPreviewPagerViewModel
TripPreviewPagerViewModel
\ class TripPreviewPagerViewModel@Injectconstructor(tripGroupRepository: TripGroupRepository, printTime: PrintTime) : RxViewModel
Constructors
TripPreviewPagerViewModel | @Inject constructor(tripGroupRepository: TripGroupRepository, printTime: PrintTime) |
Properties
Name | Summary |
---|---|
headersData | val headersData: LiveData<TripSegmentsSummaryData> |
tripGroup | val tripGroup: LiveData<TripGroup> |
tripGroupFromPolling | val tripGroupFromPolling: LiveData<TripGroup> |
Functions
Name | Summary |
---|---|
autoClear | fun <T> Observable<T>.autoClear(): Observable<T> fun Disposable.autoClear() |
generatePreviewHeaders | fun generatePreviewHeaders(context: Context, tripSegments: List<TripSegment>, getTransportIconTintStrategy: GetTransportIconTintStrategy) |
loadTripGroup | fun loadTripGroup(tripGroupId: String) |
onCleared | open override fun onCleared() This method will be called when this ViewModel is no longer used and will be destroyed. |
startUpdateTripPolling | fun startUpdateTripPolling(tripGroupId: String, scheduler: Scheduler = Schedulers.io()) |
updateTrip | fun updateTrip(tripGroupId: String, oldTripUuid: String, trip: Trip) |