APIAuthentication class
Constructors
-
APIAuthentication(APIToken token, {List<
APIPermission> ? permissions, bool resumed = false, dynamic data, APICredential? credential}) - APIAuthentication.fromJson(Map json)
-
factory
Properties
- credential → APICredential
-
no setter
- data → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
permissions
→ List<
APIPermission> -
final
- resumed → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → APIToken
-
final
- tokenKey → String
-
no setter
- username → String
-
no setter
Methods
-
containsPermissionOfType(
String type) → bool -
enabledPermissions(
{DateTime? now}) → List< APIPermission> -
enabledPermissionsOfType(
String type, {DateTime? now}) → List< APIPermission> -
enabledPermissionsOfTypes(
Iterable< String> types, {DateTime? now}) → List<APIPermission> -
enabledPermissionsWhere(
bool test(APIPermission permission), {DateTime? now}) → List< APIPermission> -
firstPermissionOfType(
String type) → APIPermission? -
isExpired(
{DateTime? now}) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited