feat: update chat service interface

This commit is contained in:
Freek van de Ven 2023-04-03 10:10:25 +02:00
parent a00e5d81be
commit 2a0d3115e8
5 changed files with 15 additions and 15 deletions

View file

@ -202,20 +202,20 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "packages/flutter_community_chat_interface" path: "packages/flutter_community_chat_interface"
ref: HEAD ref: "feature/group-chats"
resolved-ref: "676988bfd1ab9e40edfa16d752424e6506de8bcf" resolved-ref: a00e5d81bea4a344093fc08b956af0b6786cb8c3
url: "https://github.com/Iconica-Development/flutter_community_chat.git" url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git source: git
version: "0.0.1" version: "0.3.0"
flutter_community_chat_view: flutter_community_chat_view:
dependency: "direct main" dependency: "direct main"
description: description:
path: "packages/flutter_community_chat_view" path: "packages/flutter_community_chat_view"
ref: HEAD ref: "feature/group-chats"
resolved-ref: "676988bfd1ab9e40edfa16d752424e6506de8bcf" resolved-ref: a00e5d81bea4a344093fc08b956af0b6786cb8c3
url: "https://github.com/Iconica-Development/flutter_community_chat.git" url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git source: git
version: "0.0.1" version: "0.3.0"
flutter_data_interface: flutter_data_interface:
dependency: transitive dependency: transitive
description: description:
@ -584,10 +584,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: "6b12a91cd2febdb6f7e7d92c00d1d0c01d88bffc7fe36b1ed236f0cc37cb5ca4" sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.5.0" version: "0.5.1"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:

View file

@ -259,7 +259,7 @@ packages:
description: description:
path: "packages/flutter_community_chat_interface" path: "packages/flutter_community_chat_interface"
ref: "feature/group-chats" ref: "feature/group-chats"
resolved-ref: fa6a8d8b236da32fd181b4bb2cb98e7267300f88 resolved-ref: a00e5d81bea4a344093fc08b956af0b6786cb8c3
url: "https://github.com/Iconica-Development/flutter_community_chat.git" url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git source: git
version: "0.3.0" version: "0.3.0"

View file

@ -1,8 +1,8 @@
import 'package:flutter_community_chat_interface/flutter_community_chat_interface.dart'; import 'package:flutter_community_chat_interface/flutter_community_chat_interface.dart';
abstract class ChatService { abstract class ChatService {
Stream<List<PersonalChatModel>> getChatsStream(); Stream<List<ChatModel>> getChatsStream();
Future<PersonalChatModel> getOrCreateChatByUser(ChatUserModel user); Future<ChatModel> getOrCreateChatByUser(ChatUserModel user);
Future<void> deleteChat(PersonalChatModel chat); Future<void> deleteChat(ChatModel chat);
Future<PersonalChatModel> storeChatIfNot(PersonalChatModel chat); Future<ChatModel> storeChatIfNot(ChatModel chat);
} }

View file

@ -219,7 +219,7 @@ packages:
description: description:
path: "packages/flutter_community_chat_interface" path: "packages/flutter_community_chat_interface"
ref: "feature/group-chats" ref: "feature/group-chats"
resolved-ref: fa6a8d8b236da32fd181b4bb2cb98e7267300f88 resolved-ref: a00e5d81bea4a344093fc08b956af0b6786cb8c3
url: "https://github.com/Iconica-Development/flutter_community_chat.git" url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git source: git
version: "0.3.0" version: "0.3.0"

View file

@ -211,7 +211,7 @@ packages:
description: description:
path: "packages/flutter_community_chat_interface" path: "packages/flutter_community_chat_interface"
ref: "feature/group-chats" ref: "feature/group-chats"
resolved-ref: fa6a8d8b236da32fd181b4bb2cb98e7267300f88 resolved-ref: a00e5d81bea4a344093fc08b956af0b6786cb8c3
url: "https://github.com/Iconica-Development/flutter_community_chat.git" url: "https://github.com/Iconica-Development/flutter_community_chat.git"
source: git source: git
version: "0.3.0" version: "0.3.0"