Session class

Constructors

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

Properties

endpoint String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
http ↔ ScHttpClient
getter/setter pair
previewEndpoint String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
getter/setter pair

Methods

get(String name) Future<List<Item>>
getDocuments() Future<List<Item>>
getDocumentsJson() Future
getDocumentsJsonString() Future<String>
getJson(String name) Future
getJsonString(String name) Future<String>
getNews() Future<List<Item>>
getNewsJson() Future
getNewsJsonString() Future<String>
getTimetables() Future<List<Item>>
getTimetablesJson() Future
getTimetablesJsonString() Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 = defaultAppVersion, String osVersion = defaultOsVersion, String bundleId = defaultBundleId, String previewEndpoint = defaultPreviewEndpoint}) Future<Session>
Tries using the given username and password to log in.