@@ -49,6 +49,7 @@ private val okHttpClient = OkHttpClient.Builder()
4949private val baseUrl2022 = " https://raw.githubusercontent.com/GDG-Nantes/Devfest2022/master/"
5050private val baseUrl2023 = " https://raw.githubusercontent.com/GDG-Nantes/Devfest2023/main/"
5151private val baseUrl2024 = " https://raw.githubusercontent.com/GDG-Nantes/Devfest2024/main/"
52+ private val baseUrl2025 = " https://raw.githubusercontent.com/GDG-Nantes/Devfest2025/main/"
5253private val json = Json {
5354 ignoreUnknownKeys = true
5455}
@@ -64,7 +65,8 @@ suspend fun importDefvestNantes2022() =
6465 LocalDate (2022 , 10 , 21 )
6566 ),
6667 " https://raw.githubusercontent.com/GDG-Nantes/Devfest2022/master/src/images/home/album/wide/amphi.jpg" ,
67- " https://raw.githubusercontent.com/GDG-Nantes/Devfest2022/master/src/images/plan-cite-blanc.png"
68+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2022/master/src/images/plan-cite-blanc.png" ,
69+ " "
6870 ).import()
6971
7072suspend fun importDefvestNantes2023 () = DevFestNantes (
@@ -77,7 +79,8 @@ suspend fun importDefvestNantes2023() = DevFestNantes(
7779 LocalDate (2023 , 10 , 20 )
7880 ),
7981 " https://raw.githubusercontent.com/GDG-Nantes/Devfest2023/main/src/images/home/album/wide/800.jpg" ,
80- " https://raw.githubusercontent.com/GDG-Nantes/Devfest2023/main/src/images/plan-cite-transparent.png"
82+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2023/main/src/images/plan-cite-transparent.png" ,
83+ " "
8184).import()
8285
8386suspend fun importDefvestNantes2024 () = DevFestNantes (
@@ -90,9 +93,25 @@ suspend fun importDefvestNantes2024() = DevFestNantes(
9093 LocalDate (2024 , 10 , 18 )
9194 ),
9295 " https://raw.githubusercontent.com/GDG-Nantes/Devfest2024/main/src/images/home/album/wide/2000.jpg" ,
93- " https://raw.githubusercontent.com/GDG-Nantes/Devfest2024/main/src/images/plan-cite-transparent.png"
96+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2024/main/src/images/plan-cite-transparent.png" ,
97+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2024/main/static"
9498).import()
9599
100+ suspend fun importDefvestNantes2025 () = DevFestNantes (
101+ baseUrl2025,
102+ " Devfest2025" ,
103+ " main" ,
104+ ConferenceId .DevFestNantes2025 .id,
105+ listOf (
106+ LocalDate (2025 , 10 , 16 ),
107+ LocalDate (2025 , 10 , 17 )
108+ ),
109+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2025/main/src/images/home/album/equipe-amphi.jpg" ,
110+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2025/main/src/images/plan-cite-transparent.png" ,
111+ " https://raw.githubusercontent.com/GDG-Nantes/Devfest2025/main/src/images/speakers/"
112+ ).import()
113+
114+
96115class DevFestNantes (
97116 private val baseUrl : String ,
98117 private val confId : String ,
@@ -101,6 +120,7 @@ class DevFestNantes(
101120 private val days : List <LocalDate >,
102121 private val venueImageUrl : String ,
103122 private val venueFloorPlanUrl : String ,
123+ private val speakerImagesBaseUrl : String ,
104124) {
105125 private suspend fun getUrl (url : String ): String {
106126 val request = Request (url.toHttpUrl())
@@ -278,7 +298,7 @@ class DevFestNantes(
278298 }
279299 DLink (key = it.key, url = url)
280300 },
281- photoUrl = speaker.get(" photoUrl" )?.asString?.let { " ${baseUrl} static $it " },
301+ photoUrl = speaker.get(" photoUrl" )?.asString?.let { " ${speakerImagesBaseUrl} $it " },
282302 companyLogoUrl = speaker.get(" companyLogo" )?.asString?.let { " ${baseUrl} src$it " },
283303 city = speaker.get(" city" )?.asString,
284304 )
0 commit comments