Session class
Constructors
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
andpassword
to log in.
Constants
- defaultAppVersion → const String
- defaultBundleId → const String
- defaultEndpoint → const String
- defaultOsVersion → const String
- defaultPreviewEndpoint → const String