package de.beyondsoft.ownchat.page.chat;

import de.beyondsoft.ownchat.data.api.services.ChatService;
import de.beyondsoft.ownchat.di.P3DSEndpoint;
import de.beyondsoft.ownchat.di.scopes.ActivityScope;

import dagger.Module;
import dagger.Provides;
import retrofit2.Retrofit;

@Module
public class ChatModule {

    @Provides
    @ActivityScope
    ChatService provideChatService(@P3DSEndpoint Retrofit retrofit) {
        return retrofit.create(ChatService.class);
    }

}