package com.example.quiz;

import android.content.Context;

import com.example.quiz.data.remote.NotificationHelper;
import com.example.quiz.data.remote.StompManager;
import com.example.quiz.data.remote.TokenManager;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import dagger.hilt.InstallIn;
import dagger.hilt.android.qualifiers.ApplicationContext;
import dagger.hilt.components.SingletonComponent;

@Module
@InstallIn(SingletonComponent.class)
public class StompModule {

    @Provides
    @Singleton
    public StompManager provideStompManager(TokenManager tokenManager,
                                            NotificationHelper notificationHelper, @ApplicationContext Context context) {
        return new StompManager(tokenManager, notificationHelper, context);
    }
}