Skip to content
On this page

Home > sncf.js > Disruption

Disruption class

Signature:

typescript
export declare class Disruption

Constructors

Constructor

Modifiers

Description

(constructor)(Client, data)

Constructs a new instance of the Disruption class

Properties

Property

Modifiers

Type

Description

canceled

boolean

Return true if the train was canceled

cause

string

Return the cause of the disruption

delayed

boolean

Return true if the train was delayed

end

Date

Return the end date of the disruption

id

string

Return the id of the disruption

impacted_stops

ImpactedStop[]

Return the impacted stops of the disruption

messages

string[]

Return the messages of the disruption

severity

Severity

Return the severity of the disruption

start

Date

Return the start date of the disruption

status

string

Return the status of the disruption

updated_at

Date

Return the updated date of the disruption