brick_offline_first_with_rest library

Classes

ConnectOfflineFirstWithRest
An annotation used to specify a class to generate code for.
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 or 500. The queue is only concerned with connectivity.
RestRequestSqliteCacheManager

Constants

HTTP_JOBS_ATTEMPTS_COLUMN → const String
int
'attempts'
HTTP_JOBS_BODY_COLUMN → const String
String
'body'
HTTP_JOBS_CREATED_AT_COLUMN → const String
int; millisecondsSinceEpoch
'created_at'
HTTP_JOBS_ENCODING_COLUMN → const String
String
'encoding'
HTTP_JOBS_HEADERS_COLUMN → const String
json-encoded String
'headers'
HTTP_JOBS_LOCKED_COLUMN → const String
int; 1 for true, 0 for false
'locked'
HTTP_JOBS_PRIMARY_KEY_COLUMN → const String
int; autoincrement'd
'id'
HTTP_JOBS_REQUEST_METHOD_COLUMN → const String
String
'request_method'
HTTP_JOBS_TABLE_NAME → const String
'HttpJobs'
HTTP_JOBS_UPDATED_AT → const String
int; millisecondsSinceEpoch
'updated_at'
HTTP_JOBS_URL_COLUMN → const String
String
'url'