We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f98d483 commit 0469ac4Copy full SHA for 0469ac4
1 file changed
lib/src/main/kotlin/com/openmeteo/api/common/units/Unit.kt
@@ -16,6 +16,9 @@ enum class Unit(vararg val alias: @Contextual Any) {
16
@SerialName("")
17
Dimensionless,
18
19
+ @SerialName("wmo code")
20
+ WeatherCode,
21
+
22
@SerialName("%")
23
Percentage,
24
@@ -71,7 +74,27 @@ enum class Unit(vararg val alias: @Contextual Any) {
71
74
Hectopascals,
72
75
73
76
@SerialName("kPa")
- Kilopascals;
77
+ Kilopascals,
78
79
+ @SerialName("J/kg")
80
+ JoulesPerKilogram,
81
82
+ @SerialName("m³/m³")
83
+ CubeMetersPerCubeMeter,
84
85
+ @SerialName("MJ/m²")
86
+ MegajoulesPerSquareMeter,
87
88
+ @SerialName("gpm")
89
+ GeoPotentialMeters,
90
91
+ @SerialName("s⁻¹")
92
+ SecondsInverse,
93
94
+ @SerialName("g/kg")
95
+ GramsPerKilogram,
96
97
+ ;
98
99
fun aliasOf(other: Any) =
100
other in alias
0 commit comments