ChatRepository class
- Inheritance
-
- Object
- DataRepository
- ChatRepository
Methods
-
formatErrorMessage<E>(dynamic error, String defaultErrorMessage)
→ ApiError
-
inherited
-
getChatHistory(String email, String businessId)
→ Future<ApiResponse<List<ChatSession>, ChatSession>>
-
-
getChatMessages(String email, String businessId, String chatId)
→ Future<ApiResponse<List<Message>, Message>>
-
-
handleRequest<ResultType, Item>(ApiRequest<ResultType, Item> request, {CacheDescription? cache, int timeout = 50, bool retryWithCache = false, bool retry = false})
→ Future<ApiResponse<ResultType, Item>>
-
manages fetching data, decides where to fetch data from
inherited
-
initChat(InitChatDto body)
→ Future<ApiResponse<ChatSession, ChatSession>>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
sendChat(SendChatDto body)
→ Future<ApiResponse<SendChatModel, SendChatModel>>
-
-
sendDeviceToken(String deviceToken, String ticketId)
→ Future<ApiResponse<SendDeviceTokenModel, SendDeviceTokenModel>>
-
-
shouldUseCache(LocalRepository repository, CacheDescription? cache)
→ Future<bool>
-
inherited
-
ticketStatus(String ticketId)
→ Future<ApiResponse<bool, bool>>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateTicketStatus(String ticketId)
→ Future<ApiResponse<bool, bool>>
-
-
uploadImages(List<String> imagePaths, String businessId)
→ Future
-
-
validateData<ResultType, Item>(ApiResponse<ResultType, Item> response)
→ ResultType?
-
validate data to be saved to cache is not an empty list
inherited