Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created January 7, 2023 13:38
Show Gist options
  • Save FlutterWiz/3644569d4a7bdb36bb0d35b971d20f40 to your computer and use it in GitHub Desktop.
Save FlutterWiz/3644569d4a7bdb36bb0d35b971d20f40 to your computer and use it in GitHub Desktop.
abstract class IChatService {
Stream<ChatUserModel> get chatAuthStateChanges;
Stream<List<Channel>> get channelsThatTheUserIsIncluded;
Future<void> disconnectUser();
Future<void> connectTheCurrentUser();
Future<void> createNewChannel({
required List<String> listOfMemberIDs,
required String channelName,
required String channelImageUrl,
});
Future<void> sendPhotoAsMessageToTheSelectedUser({
required int sizeOfTheTakenPhoto,
required String channelId,
required String pathOfTheTakenPhoto,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment