File tree Expand file tree Collapse file tree
lib/src/main/kotlin/com/openmeteo/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ package com.openmeteo.api.common.query
33import com.openmeteo.api.common.http.ContentFormat
44
55interface QueryContentFormat : Query {
6- val format: ContentFormat
6+ val format: ContentFormat ? get() = null
77}
Original file line number Diff line number Diff line change 11package com.openmeteo.api.geocoding
22
33import com.openmeteo.api.common.http.ContentFormat
4+ import com.openmeteo.api.common.query.QueryContentFormat
45import com.openmeteo.api.common.response.ResponseGenerationTimed
56import kotlinx.serialization.SerialName
67import kotlinx.serialization.Serializable
@@ -13,9 +14,9 @@ object GeocodingSearch {
1314 open class Query internal constructor(
1415 val name : String ,
1516 val count : Int? = null ,
16- val format : ContentFormat ? = null ,
17+ override val format : ContentFormat ? = ContentFormat . ProtoBuf ,
1718 val language : String? = null ,
18- ) : com.openmeteo.api.common.query.Query {
19+ ) : QueryContentFormat {
1920
2021 constructor (
2122 name: String ,
You can’t perform that action at this time.
0 commit comments