Merge GnssStatus fields from both API versions

This commit is contained in:
Kayos 2026-03-14 21:10:36 -07:00
parent b23a5415a3
commit b9e6d6f601

View file

@ -181,17 +181,25 @@ data class UploadModeResponse(
}
data class GnssStatus(
// v7.7+ API fields
@SerializedName("lat_deg") val latDeg: Double? = null,
@SerializedName("lon_deg") val lonDeg: Double? = null,
@SerializedName("alt_m") val altM: Double? = null,
@SerializedName("unix_milliseconds") val unixMs: Long? = null,
@SerializedName("fix") val fix: Boolean? = null,
@SerializedName("fixType") val fixType: String? = null,
@SerializedName("satellites") val satellites: Int? = null,
@SerializedName("satellites_used") val satellitesUsed: Int? = null,
@SerializedName("accuracy_m") val accuracyM: Double? = null,
@SerializedName("speed_m_s") val speedMs: Double? = null,
// Legacy/status API fields
@SerializedName("has_lock") val hasLock: Boolean? = null,
@SerializedName("satellites") val satellites: Int? = null,
@SerializedName("hdop") val hdop: Double? = null,
@SerializedName("speed_m_s") val speedMs: Double? = null
@SerializedName("lat") val lat: Double? = null,
@SerializedName("lon") val lon: Double? = null,
@SerializedName("alt") val alt: Double? = null,
@SerializedName("speed_kmh") val speedKmh: Double? = null,
@SerializedName("last_fix_age_sec") val lastFixAgeSec: Int? = null
)
data class PluginState(