diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 0003733..86c0277 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -18,7 +18,7 @@ - + diff --git a/app/src/main/java/it/bz/noi/community/data/api/OpendatahubApiService.kt b/app/src/main/java/it/bz/noi/community/data/api/OpendatahubApiService.kt index dd11d86..3b0d18b 100644 --- a/app/src/main/java/it/bz/noi/community/data/api/OpendatahubApiService.kt +++ b/app/src/main/java/it/bz/noi/community/data/api/OpendatahubApiService.kt @@ -13,7 +13,6 @@ import retrofit2.http.* interface OpendatahubApiService { @GET("v1/EventShort") suspend fun getEvents( - @Query("onlyactive") onlyActive: Boolean = true, @Query("removenullvalues") removeNullValues: Boolean = true, @Query("optimizedates") optimizeDates: Boolean = true, @Query("eventlocation") eventLocation: String = "NOI", @@ -21,7 +20,8 @@ interface OpendatahubApiService { @Query("pagesize") pageSize: Int = 20, @Query("startdate") startDate: String, @Query("enddate") endDate: String? = null, - @Query("rawfilter") rawFilter: String? + @Query("rawfilter") rawFilter: String?, + @Query("publishedon") publishedOn: String? = "noi-communityapp", ): EventsResponse @GET("v1/EventShort/Detail/{id}") @@ -40,7 +40,6 @@ interface OpendatahubApiService { @GET("v1/Article") suspend fun getNews( - @Query("odhactive") onlyActive: Boolean = true, @Query("removenullvalues") removeNullValues: Boolean = true, @Query("articletype") endDate: String = "newsfeednoi", @Query("rawsort") rawFilter: String = "-ArticleDate", @@ -48,7 +47,8 @@ interface OpendatahubApiService { @Query("pagesize") pageSize: Int, @Query("pagenumber") pageNumber: Int, @Query("startdate") startDate: String, - @Query("language") language: String? + @Query("language") language: String?, + @Query("publishedon") publishedOn: String? = "noi-communityapp", ): NewsResponse @GET("v1/Article/{id}")