package app.furmeet.events.system.schedule.abstractDataTypes.convention

import app.furmeet.events.system.helper.Language
import java.io.Serializable
import java.util.*

class ConventionSeries(
        val name: Map<Language, String>,
        val featured: Convention,
        val editions: List<Convention>,
        val timeZone: TimeZone,
        val socialMedias: List<SocialMedia>,
        val language: Language,
        val statute: Map<Language, String>,
        val startupTerms: Map<Language, String>?,
        val defaultBanner: Map<Language, String>,
        val banners: List<Banner>,
        val updateFrequency: Double,
        val announcements: List<Announcement>,
        val urgentMessage: UrgentMessage?,
        val countdownOnSplash: Boolean
) : Serializable {
    val allImages
        get() =
            editions.flatMap { it.allImages } + banners.map { it.banner } + listOf(defaultBanner)
}