package com.vitorpamplona.amethyst.model

import androidx.compose.runtime.Immutable
import com.vitorpamplona.amethyst.service.relays.FeedType

@Immutable
data class RelaySetupInfo(
    val url: String,
    val read: Boolean,
    val write: Boolean,
    val errorCount: Int = 0,
    val downloadCountInBytes: Int = 0,
    val uploadCountInBytes: Int = 0,
    val spamCount: Int = 0,
    val feedTypes: Set<FeedType>,
    val paidRelay: Boolean = false
) {
    val briefInfo: RelayBriefInfoCache.RelayBriefInfo = RelayBriefInfoCache.RelayBriefInfo(url)
}
