changed the structs to match the OTS api types

This commit is contained in:
Valmo Trindade
2024-08-17 06:21:30 -03:00
parent a5281021bf
commit 524b025bf6

View File

@@ -5,17 +5,21 @@ type Payload struct {
Username string `json:"username,omitempty"`
}
type GeoObject struct {
UID string `json:"uid,omitempty"`
type Marker struct {
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
Attitude string `json:"attitude"`
Bearing int `json:"bearing,omitempty"`
Distance int `json:"distance,omitempty"`
GeoObject string `json:"geoObject"`
How string `json:"how,omitempty"`
Name string `json:"name,omitempty"`
Timeout int `json:"timeout,omitempty"`
Name string `json:"name"`
UID string `json:"uid"`
Type string `json:"type,omitempty"`
Course float64 `json:"course,omitempty"`
Azimuth float64 `json:"azimuth,omitempty"`
Speed float64 `json:"speed,omitempty"`
Battery float64 `json:"battery,omitempty"`
FOV int `json:"fov,omitempty"`
CE int `json:"ce,omitempty"`
HAE int `json:"hae,omitempty"`
LE int `json:"le,omitempty"`
}
type Message struct {