import { NativeModules } from 'react-native'; const bubblesModule = NativeModules.Bubbles; class BubblesService { public getBubbles(): void { bubblesModule.getBubbles(); } public getInvitedBubbles(): void { bubblesModule.getInvitedBubbles(); } public acceptBubbleInvitation(bubbleId: string): void { bubblesModule.acceptBubbleInvitation(bubbleId); } public declineBubbleInvitation(bubbleId: string): void { bubblesModule.declineBubbleInvitation(bubbleId); } public createBubble(name: string, topic: string) { bubblesModule.createBubble(name, topic); } public createBubbleWithParticipants(name: string, topic: string, participantsId: string[]) { bubblesModule.createBubbleWithParticipants(name, topic, participantsId); } public createAutoAcceptedBubble(name: string, topic: string) { bubblesModule.createAutoAcceptedBubble(name, topic); } public leaveBubble(bubbleId: string) { bubblesModule.leaveBubble(bubbleId); } public archiveBubble(bubbleId: string) { bubblesModule.archiveBubble(bubbleId); } public deleteBubble(bubbleId: string) { bubblesModule.deleteBubble(bubbleId); } public updateBubbleInfo(bubbleId: string, name: string, topic: string) { bubblesModule.updateBubbleInfo(bubbleId, name, topic); } public updateBubblePhoto(bubbleId: string, imageUrl: string) { bubblesModule.updateBubblePhoto(bubbleId, imageUrl); } public getPendingBubbleInvitation() { bubblesModule.getPendingBubbleInvitation(); } public sendBubbleChatByEmail(bubbleId: string) { bubblesModule.sendBubbleChatByEmail(bubbleId); } public checkIfBubbleHasActiveConference(bubbleId: string) { bubblesModule.checkIfBubbleHasActiveConference(bubbleId) } public getBubbleById(bubbleId: string) { bubblesModule.getBubbleById(bubbleId); } public getActiveConferenceForBubble(bubbleId: string) { bubblesModule.getActiveConferenceForBubble(bubbleId); } } export const bubblesService = new BubblesService();