AtStatus class
The AtStatus model includes five parameters String atSign; String serverLocation; RootStatus rootStatus; ServerStatus serverStatus; AtSignStatus atSignStatus;
It also provides the following convenience methods status() returns an enumerated AtSignStatus value of the overall status of an @sign httpStatus() returns an integer HttpStatus code of the overall status of an @sign toJson() returns a Map<String, dynamic> representation of an AtStatus object fromJson(Map json) returns an AtStatus object from a JSON Map toString() returns a String representation of an AtStatus object
The AtSignStatus values returned by status() and their meanings are:
AtSignStatus.notFound The @server has no root location
AtSignStatus.ready The @server has root location, is running and ready for activation
AtSignStatus.teapot @server has root location, is running but is not activated
AtSignStatus.activated @server has root location, is running and is activated
AtSignStatus.unavailable: Either the @root or @server is not currently available
AtSignStatus.error There was an error encountered by this library
The HttpStatus codes returned by httpStatus() and their meanings are:
static const int notFound = 404 Not Found(404) @server has no root location, is not running and is not activated
static const int serviceUnavailable = 503 Service Unavailable(503) @server has root location, is not running and is not activated
int 418 I'm a teapot(418) @server has root location, is running and but not activated
static const int ok = 200 OK (200) @server has root location, is running and is activated
static const int internalServerError = 500 Internal Server Error(500) at_find_api internal error
static const int badGateway = 502 Bad Gateway(502) @root server is down
Constructors
- AtStatus({String? atSign, String? serverLocation, RootStatus? rootStatus, ServerStatus? serverStatus, AtSignStatus? atSignStatus})
- AtStatus.fromJson(Map json)
Properties
- atSign ↔ String?
-
getter/setter pair
- atSignStatus ↔ AtSignStatus?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootStatus ↔ RootStatus?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverLocation ↔ String?
-
getter/setter pair
- serverStatus ↔ ServerStatus?
-
getter/setter pair
Methods
-
httpStatus(
) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
status(
) → AtSignStatus? -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited