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

Add Devfest Warsaw 24 #1486

Merged
merged 2 commits into from
Nov 23, 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 @@ -37,6 +37,7 @@ enum class ConferenceId(val id: String) {
DroidConLisbon2024("droidconlisbon2024"),
DroidConLondon2024("droidconlondon2024"),
DevFestVenice2024("devfestvenice2024"),
DevFestWarsaw2024("devfestwarsaw2024"),
;

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private suspend fun update(conf: String?): Int {
ConferenceId.DroidConLisbon2024 -> importDroidconLisbon2024()
ConferenceId.DroidConLondon2024 -> importDroidconLondon2024()
ConferenceId.DevFestVenice2024 -> importDevFestVenice2024()
ConferenceId.DevFestWarsaw2024 -> Sessionize.importDevFestWarsaw2024()
null -> error("")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,30 @@ object Sessionize {
)
}

suspend fun importDevFestWarsaw2024(): Int {
return writeData(
getData("https://sessionize.com/api/v2/mzjxwflc/view/All"),
config = DConfig(
id = ConferenceId.DevFestWarsaw2024.id,
name = "DevFest Warsaw 2024",
timeZone = "Europe/Warsaw",
themeColor = "0xFF512DA8"
),
venue = DVenue(
id = "main",
name = "Google for Startups Campus Warsaw",
address = "Plac Konesera 10, 03-736 Warszawa",
description = mapOf(
"en" to "Google for Startups Campus Warsaw",
),
latitude = 52.2561388,
longitude = 21.0453105,
imageUrl = "https://i.postimg.cc/GmVdqZsq/campus-outside.jpg",
floorPlanUrl = null
),
)
}

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