DOOClientApiInterceptor class
Intercepts network requests and attaches inbox identifier, contact identifiers, conversation identifiers
Constructors
- DOOClientApiInterceptor(String _inboxIdentifier, LocalStorage _localStorage, DOOClientAuthService _authService)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- requestLock → Lock
-
final
- responseLock → Lock
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
DioException err, ErrorInterceptorHandler handler) → void -
Called when an exception was occurred during the request.
inherited
-
onRequest(
RequestOptions options, RequestInterceptorHandler handler) → Future< void> - Creates a new contact and conversation when no persisted contact is found when an api call is made
-
onResponse(
Response response, ResponseInterceptorHandler handler) → Future< void> - Clears and recreates contact when a 401 (Unauthorized), 403 (Forbidden) or 404 (Not found) response is returned from DOO public client api
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited