tripkit-android / com.skedgo.tripkit.ui.servicedetail / ServiceDetailItemViewModel
ServiceDetailItemViewModel
class ServiceDetailItemViewModel :
RxViewModel
Types
Name | Summary |
---|---|
LineDirection | enum class LineDirection |
Constructors
Name | Summary |
---|---|
<init> | ServiceDetailItemViewModel(getStopTimeDisplayText: GetStopTimeDisplayText ) |
Properties
Name | Summary |
---|---|
getStopTimeDisplayText | val getStopTimeDisplayText: GetStopTimeDisplayText |
lineColor | var lineColor: Int |
lineDrawable | val lineDrawable: ObservableField<NinePatchDrawable> |
onItemClick | val onItemClick: TapAction < StopInfo ?> |
scheduledTime | val scheduledTime: ObservableField< String > |
scheduledTimeTextColor | val scheduledTimeTextColor: ObservableInt |
stop | var stop: StopInfo ? |
stopName | val stopName: ObservableField< String > |
stopNameColor | val stopNameColor: ObservableInt |
Functions
Name | Summary |
---|---|
setDrawable | fun setDrawable(context: Context, direction: LineDirection): Unit |
setStop | fun setStop(context: Context, stop: StopInfo , _lineColor: Int , travelled: Boolean ): Unit |