Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Droidcon Lisbon 2024 #1421

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ enum class ConferenceId(val id: String) {
KotlinConf2024("kotlinconf2024"),
DroidconBerlin2024("droidconberlin2024"),
DevFestLille2024("devfestlille2024"),
DroidConLisbon2024("droidconlisbon2024"),
;

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import dev.johnoreilly.confetti.backend.datastore.DataStore
import dev.johnoreilly.confetti.backend.import.Sessionize.importDevFestGeorgia2023
import dev.johnoreilly.confetti.backend.import.Sessionize.importDevFestMelbourne2023
import dev.johnoreilly.confetti.backend.import.Sessionize.importDroidconLisbon2023
import dev.johnoreilly.confetti.backend.import.Sessionize.importDroidconLisbon2024
import io.ktor.http.HttpStatusCode
import io.ktor.server.application.call
import io.ktor.server.application.install
Expand Down Expand Up @@ -132,6 +133,7 @@ private suspend fun update(conf: String?): Int {
ConferenceId.KotlinConf2024 -> Sessionize.importKotlinConf2024()
ConferenceId.DroidconBerlin2024 -> Sessionize.importDroidconBerlin2024()
ConferenceId.DevFestLille2024 -> DevfestLille.import()
ConferenceId.DroidConLisbon2024 -> importDroidconLisbon2024()

null -> error("")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,32 @@ object Sessionize {
)
)
}

suspend fun importDroidconLisbon2024(): Int {
return writeData(
getData("https://sessionize.com/api/v2/k3h4w594/view/All"),
config = DConfig(
id = ConferenceId.DroidConLisbon2024.id,
name = "droidcon Lisbon 2024",
timeZone = "Europe/Lisbon"
),
venue = DVenue(
id = "main",
name = "Fórum Cultural de Alcochete",
address = "Fórum Cultural de Alcochete",
description = mapOf(
"en" to "Fórum Cultural de Alcochete",
"fr" to "Fórum Cultural de Alcochete.",
),
latitude = 38.7458978,
longitude = -8.9743295,
imageUrl = "https://static.wixstatic.com/media/eb9bc0_1da6dc27109b4624b43f71701f60e90e~mv2.jpg/v1/crop/x_0,y_622,w_4096,h_1828/fill/w_531,h_237,al_c,q_80,usm_0.66_1.00_0.01,enc_auto/forum%20cultural%20alcochete.jpg",
floorPlanUrl = null
)
)
}


internal fun writeData(
sessionizeData: SessionizeData,
config: DConfig,
Expand Down
Loading