db/db library

subscriptions for Deutsche Bahn

Classes

AdditionalElements
might contain a base64 encoded PNG of a railway ticket
Customer
the customer the ticket is valid for
header image of the ticket
RefreshData
the required metadata for a ticket refresh request
SubscriptionApi
Ticket
wrapper around the base64 encoded TicketPayload
TicketCover
the ticket summary at a glace
TicketPayload
the actual payload representing a ticket
TicketResponse
TicketTexts
some text information contained in the ticket
TrafficAssociation
represents the traffic association the ticket is valid in
VerificationImage
no clue what it's used for - but it's relevant for subscription refresh

Enums

TicketLayout
the layout for the ticket

Properties

customAztecDecoder AztecImageDecoder?
no setter

Functions

defaultAztecReader(Image image) Uint8List?
The default Aztec decoder using AztecReader.
setCustomAztecDecoder(AztecImageDecoder decoder) → dynamic

Typedefs

AztecImageDecoder = FutureOr<Uint8List?> Function(Image image)

Exceptions / Errors

ApiError
abstract error class
ApiHttpError
some error we do not expect
SubscriptionAlreadyClaimedError
401 - railway edition
SubscriptionNotFoundError
404 - railway edition