ChatwootClientApiInterceptor class

Intercepts network requests and attaches inbox identifier, contact identifiers, conversation identifiers

Constructors

ChatwootClientApiInterceptor(String _inboxIdentifier, LocalStorage _localStorage, ChatwootClientAuthService _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(DioError err, ErrorInterceptorHandler handler) → void
The callback will be executed on error.
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 chatwoot public client api
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited