HapiMessage

data class HapiMessage(id: String, externalId: String?, act: Boolean, head: String, lead: String?, text: String, customText: String?, tckr: String?, company: String?, category: String?, priority: Int, products: Int?, icon: String?, routeIdxFrom: Int?, routeIdxTo: Int?, sTime: LocalTime?, sDate: LocalDate?, eTime: LocalTime?, eDate: LocalDate?, altStart: String?, altEnd: String?, modTime: LocalTime?, modDate: LocalDate?, affectedProduct: List<HapiProduct>, affectedJourney: List<HapiJourney>, edge: List<HapiMessage.Edge>, region: List<HapiMessage.Region>, affectedStops: List<HapiAffectedStop>, validFromStop: HapiStop?, validToStop: HapiStop?, tags: List<String>, channel: List<HapiMessage.Channel>, messageCategory: List<HapiMessage.Category>, messageText: List<HapiMessage.Text>, Note: List<HapiNote>, message: List<HapiMessage>)

Types

Category
Link copied to clipboard
data class Category(id: Int, name: String?)

Message category having an ID and optional a name.

Channel
Link copied to clipboard
data class Channel(name: String?, url: List<String>, validFromTime: LocalTime, validFromDate: LocalDate, validToTime: LocalTime, validToDate: LocalDate)
Edge
Link copied to clipboard
data class Edge(polyline: List<HapiPolyline>, polylineGroup: List<HapiPolylineGroup>, iconCoordinate: HapiCoord?, messageRef: List<Int>, direction: Int)
Region
Link copied to clipboard
data class Region(polyline: List<HapiPolyline>, polylineGroup: List<HapiPolylineGroup>, iconCoordinate: HapiCoord?, messageRef: List<Int>)
Text
Link copied to clipboard
data class Text(tag: List<String>, text: List<String>)

Properties

act
Link copied to clipboard
val act: Boolean = true

If message is active, value is true.

affectedJourney
Link copied to clipboard
val affectedJourney: List<HapiJourney>

Journeys affected by this message

affectedProduct
Link copied to clipboard
val affectedProduct: List<HapiProduct>

Products affected by this message

affectedStops
Link copied to clipboard
val affectedStops: List<HapiAffectedStop>

Stops affected by this message

altEnd
Link copied to clipboard
val altEnd: String?

Descriptive text for end of event period.

altStart
Link copied to clipboard
val altStart: String?

Descriptive text for start of event period.

category
Link copied to clipboard
val category: String?

Deprecated. See Message/MessageCategory. For sanity reason, id of first MessageCategory ist filled here.

channel
Link copied to clipboard
val channel: List<HapiMessage.Channel>

List of publication channels along with its validity and optional URLs.

company
Link copied to clipboard
val company: String?

Company whom created this message.

customText
Link copied to clipboard
val customText: String?

Custom text

eDate
Link copied to clipboard
val eDate: LocalDate?

Event period ending date in format YYYY-MM-DD.

edge
Link copied to clipboard
val edge: List<HapiMessage.Edge>

Edges affected by this message

eTime
Link copied to clipboard
val eTime: LocalTime?

Event period ending time in format hh:mm:ss

externalId
Link copied to clipboard
val externalId: String?

External ID of the message if based on an external system.

head
Link copied to clipboard
val head: String

Heading of message.

icon
Link copied to clipboard
val icon: String?
id
Link copied to clipboard
val id: String
lead
Link copied to clipboard
val lead: String?

Preamble of message.

message
Link copied to clipboard
val message: List<HapiMessage>

Child messages.

messageCategory
Link copied to clipboard
val messageCategory: List<HapiMessage.Category>

List of message categories with its ID and optional localized name.

messageText
Link copied to clipboard
val messageText: List<HapiMessage.Text>

List of messages texts with its tags and localized text fragments.

modDate
Link copied to clipboard
val modDate: LocalDate?

Message was last modified at date in format YYYY-MM-DD.

modTime
Link copied to clipboard
val modTime: LocalTime?

Message was last modified at time in format hh:mm:ss

Note
Link copied to clipboard
val Note: List<HapiNote>

List of notes to be displayed for this message.

priority
Link copied to clipboard
val priority: Int

Priority of the message.

products
Link copied to clipboard
val products: Int?

This value specifies the products affected by this message.

region
Link copied to clipboard
val region: List<HapiMessage.Region>

Regions affected by this message

routeIdxFrom
Link copied to clipboard
val routeIdxFrom: Int?

First stop/station where this message is valid. See the Stops list in the JourneyDetail response for this leg to get more details about this stop/station.

routeIdxTo
Link copied to clipboard
val routeIdxTo: Int?

Last stop/station where this message is valid. See the Stops list in the JourneyDetail response for this leg to get more details about this stop/station.

sDate
Link copied to clipboard
val sDate: LocalDate?

Event period beginning date in format YYYY-MM-DD.

sTime
Link copied to clipboard
val sTime: LocalTime?

Event period beginning time in format hh:mm:ss

tags
Link copied to clipboard
val tags: List<String>

List of tags this message is tagged with.

tckr
Link copied to clipboard
val tckr: String?

Deprecated. Message text for ticker display.

text
Link copied to clipboard
val text: String

Message text.

validFromStop
Link copied to clipboard
val validFromStop: HapiStop?

Message is valid from this stop.

validToStop
Link copied to clipboard
val validToStop: HapiStop?

Message is valid until this stop.