package dev.zxq5.chatapp.android

import android.app.Application
import dev.zxq5.chatapp.android.core.data.TokenStore
import dev.zxq5.chatapp.android.data.repository.AuthRepository
import dev.zxq5.chatapp.android.data.repository.ChatRepository
import dev.zxq5.chatapp.android.data.repository.SettingsRepository

class ChatApplication : Application() {

    val tokenStore by lazy { TokenStore(this) }
    val authRepository by lazy { AuthRepository(tokenStore) }
    val chatRepository by lazy { ChatRepository(tokenStore) }
    val settingsRepository by lazy { SettingsRepository(tokenStore) }

    override fun onCreate() {
        super.onCreate()
    }
}
