Skip to content

Commit

Permalink
fix: removed useless serial names from Query
Browse files Browse the repository at this point in the history
`@SerialName` can't be inherited from interfaces.
Might open an issue in the future.
  • Loading branch information
DadiBit committed Jun 4, 2023
1 parent a7709c0 commit 3e4e753
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/src/main/kotlin/com/openmeteo/api/common/query/Query.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.openmeteo.api.common.query

import com.openmeteo.api.common.time.Date
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.SerialName
import kotlinx.serialization.properties.Properties
import kotlinx.serialization.properties.encodeToStringMap
import java.net.URL
Expand Down Expand Up @@ -99,13 +98,11 @@ interface Query {
/**
* The start date of the range.
*/
@SerialName("start_date")
val startDate: Date?

/**
* The end date of the range.
*/
@SerialName("end_date")
val endDate: Date?
}

Expand All @@ -117,7 +114,6 @@ interface Query {
/**
* The number of days in the past to query.
*/
@SerialName("past_days")
val pastDays: Int?
}

Expand All @@ -129,7 +125,6 @@ interface Query {
/**
* The number of days in the future to query.
*/
@SerialName("forecast_days")
val forecastDays: Int?
}

Expand All @@ -155,7 +150,6 @@ interface Query {
/**
* Whether to include the current weather in the response or not.
*/
@SerialName("current_weather")
val currentWeather: Boolean?
}
}

0 comments on commit 3e4e753

Please sign in to comment.