Skip to content

Commit

Permalink
Merge pull request #1212 from joreilly/am2024
Browse files Browse the repository at this point in the history
Add Android Makers by droidcon 2024
  • Loading branch information
martinbonnin authored Mar 28, 2024
2 parents 38b8360 + 533bcfb commit c153c1e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ enum class ConferenceId(val id: String) {
DevFestSriLanka2023("devfestsrilanka2023"),
DroidconAmman2024("droidconamman2024"),
SheDevWarsaw2024("shedevwarsaw2024"),
AndroidMakers2024("androidmakers2024"),
;

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private suspend fun update(conf: String?): Int {
ConferenceId.DevFestSriLanka2023 -> Sessionize.importDevFestSriLanka2023()
ConferenceId.DroidconAmman2024 -> Sessionize.importDroidconAmman2024()
ConferenceId.SheDevWarsaw2024 -> Sessionize.importSheDevWarsaw2024()
ConferenceId.AndroidMakers2024 -> Sessionize.importAndroidMakers2024()

null -> error("")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ object Sessionize {
val speakers: List<DSpeaker>,
)

suspend fun importAndroidMakers2024(): Int {
return writeData(
getData("https://sessionize.com/api/v2/ok1n6jgj/view/All"),
config = DConfig(
id = ConferenceId.AndroidMakers2024.id,
name = "AndroidMakers by droidcon 2024",
timeZone = "Europe/Paris",
themeColor = "0xffFB5C49"
),
venue = DVenue(
id = "main",
name = "Beffroi de Montrouge",
address = "Av. de la République, 92120 Montrouge",
description = mapOf(
"en" to "Cool venue",
"fr" to "Venue fraiche",
),
latitude = 48.8188958,
longitude = 2.3193016,
imageUrl = "https://www.beffroidemontrouge.com/wp-content/uploads/2019/09/moebius-1.jpg",
floorPlanUrl = null
),
)
}

suspend fun importDevFestVenice2023(): Int {
return writeData(
getData("https://sessionize.com/api/v2/idarcge5/view/All"),
Expand Down

0 comments on commit c153c1e

Please sign in to comment.