HapiProduct

data class HapiProduct(name: String?, internalName: String?, addName: String?, displayNumber: String?, num: String?, line: String?, lineId: String?, catOut: String?, catIn: String?, catCode: String?, cls: Int?, catOutS: String?, catOutL: String?, operatorCode: String?, operator: String?, admin: String?, routeIdxFrom: Int?, routeIdxTo: Int?, matchId: String?, icon: HapiIcon?, status: HapiProduct.Status?)

Product context, provides access to internal data. For the product category attributes, their assignments are defined in the "zugart" file from the raw Hafas plan data.

Constructors

HapiProduct
Link copied to clipboard
fun HapiProduct(name: String?, internalName: String?, addName: String?, displayNumber: String?, num: String?, line: String?, lineId: String?, catOut: String?, catIn: String?, catCode: String?, cls: Int?, catOutS: String?, catOutL: String?, operatorCode: String?, operator: String?, admin: String?, routeIdxFrom: Int?, routeIdxTo: Int?, matchId: String?, icon: HapiIcon?, status: HapiProduct.Status?)

Types

Status
Link copied to clipboard
data class Status(code: Int?, txt: String?, icon: HapiIcon?, rtIcon: HapiIcon?)

Properties

addName
Link copied to clipboard
val addName: String?

Additional product name. This is customer specific.

admin
Link copied to clipboard
val admin: String?

The administration name.

catCode
Link copied to clipboard
val catCode: String?

Product category code.

catIn
Link copied to clipboard
val catIn: String?

Internal product category name.

catOut
Link copied to clipboard
val catOut: String?

Product category name as used for display in standard form.

catOutL
Link copied to clipboard
val catOutL: String?

Product category name for display in long form.

catOutS
Link copied to clipboard
val catOutS: String?

Product category name for display in short form.

cls
Link copied to clipboard
val cls: Int?

Product category in decimal form.

displayNumber
Link copied to clipboard
val displayNumber: String?

Number for display

icon
Link copied to clipboard
val icon: HapiIcon?
internalName
Link copied to clipboard
val internalName: String?

Internal product name. Not used for display. Used e.g. in reconstruction services.

line
Link copied to clipboard
val line: String?

Line name if available (e.g. "R10")

lineId
Link copied to clipboard
val lineId: String?

External line id for use in further requests

matchId
Link copied to clipboard
val matchId: String?

The match ID.

name
Link copied to clipboard
val name: String?

Product name for display. The name might be composed from product number, line and/or category. This is customer specific.

num
Link copied to clipboard
val num: String?

Internal product number (e.g. train number)

operator
Link copied to clipboard
val operator: String?

The operator name.

operatorCode
Link copied to clipboard
val operatorCode: String?

The operator code.

routeIdxFrom
Link copied to clipboard
val routeIdxFrom: Int?

Defines the first stop/station where this name is valid. See the Stops list for details of the stop/station.

routeIdxTo
Link copied to clipboard
val routeIdxTo: Int?

Defines the last stop/station where this name is valid. See the Stops list for details of the stop/station.

status
Link copied to clipboard
val status: HapiProduct.Status?