clean up
This commit is contained in:
9
lib/data/services/messaging_service.dart
Normal file
9
lib/data/services/messaging_service.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
typedef OnNotify(Map<String, dynamic> message);
|
||||
typedef OnSetupComplete(String token);
|
||||
|
||||
abstract class MessagingService {
|
||||
void init(OnNotify onMessage,
|
||||
{OnNotify onLaunch, OnNotify onResume, OnSetupComplete onSetupComplete});
|
||||
Future<void> subscribe(String topic);
|
||||
Future<void> unsubscribe(String topic);
|
||||
}
|
||||
Reference in New Issue
Block a user