offline_first_with_rest library
Classes
- ConnectOfflineFirstWithRest
- An annotation used to specify a class to generate code for.
- OfflineFirst
-
Low-level field config for the
OfflineFirst
domain. -
OfflineFirstWithRestAdapter<
_Model extends OfflineFirstWithRestModel> -
This adapter fetches first from
SqliteProvider
then hydrates with RestProvider. - OfflineFirstWithRestModel
- OfflineFirstWithRestRepository
-
Ensures the remoteProvider is a RestProvider. All requests to and
from the remoteProvider pass through a seperate SQLite queue. If the app
is unable to make contact with the remoteProvider, the queue automatically retries in
sequence until it receives a response. Please note that a response may still be an error
code such as
404
or500
. The queue is only concerned with connectivity. - Rest
-
An annotation used to specify how a field is serialized for a
RestAdapter
. Heavily inspired by JsonKey - RestProvider
- Retrieves from an HTTP endpoint
- RestRequestSqliteCacheManager
- RestSerializable
- An annotation used to specify a class to generate code for.
- Sqlite
- An annotation used to specify how a field is serialized. Heavily inspired by JsonKey
- SqliteSerializable
- An annotation used to specify a class to generate code for.
Enums
- Column
- SQLite data types.
- FieldRename
- Values for the automatic field renaming behavior for RestSerializable.
Constants
- HTTP_JOBS_ATTEMPTS_COLUMN → const String
- int
- HTTP_JOBS_BODY_COLUMN → const String
- String
- HTTP_JOBS_CREATED_AT_COLUMN → const String
- int; millisecondsSinceEpoch
- HTTP_JOBS_ENCODING_COLUMN → const String
- String
- HTTP_JOBS_HEADERS_COLUMN → const String
- json-encoded String
- HTTP_JOBS_LOCKED_COLUMN → const String
- int; 1 for true, 0 for false
- HTTP_JOBS_PRIMARY_KEY_COLUMN → const String
- int; autoincrement'd
- HTTP_JOBS_REQUEST_METHOD_COLUMN → const String
- String
- HTTP_JOBS_TABLE_NAME → const String
- HTTP_JOBS_UPDATED_AT → const String
- int; millisecondsSinceEpoch
- HTTP_JOBS_URL_COLUMN → const String
- String