ConnectOut-sdp/sdp2023

View on GitHub
app/src/main/java/com/sdpteam/connectout/notifications/EventNotificationManager.java

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
package com.sdpteam.connectout.notifications;

import com.google.firebase.messaging.FirebaseMessaging;

public class EventNotificationManager {
    public void subscribeToEventTopic(String eventId) {
        FirebaseMessaging.getInstance().subscribeToTopic("event_" + eventId);
    }

    public void unsubscribeFromEventTopic(String eventId) {
        FirebaseMessaging.getInstance().unsubscribeFromTopic("event_" + eventId);
    }
}