feat: add Location and EventLogEntry data models

This commit is contained in:
fiatcode 2026-04-30 10:53:55 +07:00
parent 01ec1a4807
commit 8611df1c75
No known key found for this signature in database
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,17 @@
package com.traccar.traccar_client.model
data class EventLogEntry(
val id: Long = 0,
val timestamp: Long,
val eventType: String,
val message: String
)
enum class EventType {
LOCATION,
FILTERED,
SYNC,
HEARTBEAT,
NETWORK_CHANGE,
ERROR
}

View file

@ -0,0 +1,14 @@
package com.traccar.traccar_client.model
data class Location(
val id: Long = 0,
val timestamp: Long,
val latitude: Double,
val longitude: Double,
val accuracy: Float?,
val speed: Float?,
val heading: Float?,
val altitude: Double?,
val isMoving: Boolean,
val synced: Boolean = false
)