Fixed moshi transmitter adapter issue

This commit is contained in:
Arty Bishop committed 2020-10-06 23:24:17 +01:00
1 parent 0ef2a09e8a
commit 71c9e2c298
1 file changed
+10 -10
@@ -25,14 +25,14 @@ import com.squareup.moshi.Json
@Entity(tableName = "transmitters") @Entity(tableName = "transmitters")
data class SatTrans( data class SatTrans(
@PrimaryKey @Json(name = "uuid") val uuid: String, @PrimaryKey @field:Json(name = "uuid") val uuid: String,
@Json(name = "description") val description: String, @field:Json(name = "description") val description: String,
@Json(name = "alive") val isAlive: Boolean, @field:Json(name = "alive") val isAlive: Boolean,
@Json(name = "uplink_low") val uplinkLow: Long?, @field:Json(name = "uplink_low") val uplinkLow: Long?,
@Json(name = "uplink_high") val uplinkHigh: Long?, @field:Json(name = "uplink_high") val uplinkHigh: Long?,
@Json(name = "downlink_low") val downlinkLow: Long?, @field:Json(name = "downlink_low") val downlinkLow: Long?,
@Json(name = "downlink_high") val downlinkHigh: Long?, @field:Json(name = "downlink_high") val downlinkHigh: Long?,
@Json(name = "mode") val mode: String?, @field:Json(name = "mode") val mode: String?,
@Json(name = "invert") val isInverted: Boolean, @field:Json(name = "invert") val isInverted: Boolean,
@Json(name = "norad_cat_id") val catNum: Int @field:Json(name = "norad_cat_id") val catNum: Int
) )