Session class Null safety

Constructors

Session(String token, {String endpoint = defaultEndpoint, dynamic http, String previewEndpoint = defaultPreviewEndpoint})

Properties

endpoint String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
http ScHttpClient
read / write
previewEndpoint String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String
read / write

Methods

downloadPlans(List json, {bool downloadPreviews = false}) Iterable<DownloadingPlan>
getJson(String name) Future
getJsonString(String name) Future<String>
getTimetableJson() Future<List>
getTimetableJsonString() Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

login(String username, String password, {ScHttpClient? http, String endpoint = defaultEndpoint, String appVersion = '36', String osVersion = '30', String previewEndpoint = defaultPreviewEndpoint}) Future<Session>

Constants

defaultEndpoint → const String
'https://mobileapi.dsbcontrol.de'
defaultPreviewEndpoint → const String
'https://light.dsbcontrol.de/DSBlightWebsite/Data'