EfaTravelInfo

data class EfaTravelInfo(file: String?, type: EfaTravelInfo.Type, providerCode: String, infoID: String, infoLink: List<EfaTravelInfo.Info>, seqID: Int?, deactivated: Boolean, priority: EfaTravelInfo.Priority, publish: Boolean, valid: Boolean, sourceSystem: EfaSystem, creationTime: LocalDateTime, publicationDuration: EfaPeriod, validityPeriod: List<EfaPeriod>, expirationDateTime: LocalDateTime, concernedLines: List<EfaLine>?)

Describes the json structure encoding travel infos from the XML_ADDINFO_REQUEST endpoint. Appears at $.additionalInformation.travelInfos[].travelInformation[]

Constructors

EfaTravelInfo
Link copied to clipboard
fun EfaTravelInfo(file: String?, type: EfaTravelInfo.Type, providerCode: String, infoID: String, infoLink: List<EfaTravelInfo.Info>, seqID: Int? = null, deactivated: Boolean, priority: EfaTravelInfo.Priority, publish: Boolean, valid: Boolean, sourceSystem: EfaSystem, creationTime: LocalDateTime, publicationDuration: EfaPeriod, validityPeriod: List<EfaPeriod>, expirationDateTime: LocalDateTime, concernedLines: List<EfaLine>?)

Types

Info
Link copied to clipboard
data class Info(language: String, paramList: List<EfaTravelInfo.Info.Param>, infoLinkText: String?, infoLinkURL: String, content: String?, subtitle: String?, additionalLinks: List<EfaTravelInfo.Info.Link>?)
Line
Link copied to clipboard
data class Line(selected: String?, number: String?, name: String?, supplement: String?, direction: String?, directionName: String?, partialNet: String?, motType: EfaMeansOfTransport?, motCode: Int, productId: String?, operator: String?, admin: String?, stateless: String?, directionFrom: String?)
Priority
Link copied to clipboard
enum Priority : Enum<EfaTravelInfo.Priority>
Type
Link copied to clipboard
enum Type : Enum<EfaTravelInfo.Type>

Properties

concernedLines
Link copied to clipboard
val concernedLines: List<EfaLine>?

The lines affected by this info

creationTime
Link copied to clipboard
val creationTime: LocalDateTime

The time of date/time of creation of this info

deactivated
Link copied to clipboard
val deactivated: Boolean

Whether this info has been deactivated

expirationDateTime
Link copied to clipboard
val expirationDateTime: LocalDateTime

The date/time of when this info expires

file
Link copied to clipboard
val file: String?

TODO: Purpose

infoID
Link copied to clipboard
val infoID: String

The info's id

infoLink
Link copied to clipboard
val infoLink: List<EfaTravelInfo.Info>

The links associated with this info

priority
Link copied to clipboard
val priority: EfaTravelInfo.Priority

The priority of this info

providerCode
Link copied to clipboard
val providerCode: String

The code of this info's provider

publicationDuration
Link copied to clipboard
val publicationDuration: EfaPeriod

The period that this info is public in

publish
Link copied to clipboard
val publish: Boolean

Whether this info is currently public

seqID
Link copied to clipboard
val seqID: Int? = null

The sequence id of this info

sourceSystem
Link copied to clipboard
val sourceSystem: EfaSystem

The system that produced this info

type
Link copied to clipboard
val type: EfaTravelInfo.Type

The type of this info

valid
Link copied to clipboard
val valid: Boolean

Whether this info is valid

validityPeriod
Link copied to clipboard
val validityPeriod: List<EfaPeriod>

The period that this info is valid in