-
Notifications
You must be signed in to change notification settings - Fork 1
/
search_response.go
35 lines (29 loc) · 925 Bytes
/
search_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package searchpartykeys
type Payload struct {
LocationInfo []string `json:"locationInfo"`
Id string `json:"id"`
}
type Locations struct {
LocationPayload []Payload `json:"locationPayload"`
ConfigVersion int `json:"configVersion"`
StatusCode string `json:"statusCode"`
}
type Info struct {
LocationTs int64 `json:"locationTs"`
Location string `json:"location"`
Fmt int `json:"fmt"`
}
type P struct {
LocationInfo []Info `json:"locationInfo"`
Id string `json:"id"`
}
type DeviceLocations struct {
LocationPayload []P `json:"locationPayload"`
ConfigVersion int `json:"configVersion"`
StatusCode string `json:"statusCode"`
}
type SearchResponse struct {
ConfigVersion int `json:"configVersion"`
AcsnLocations Locations `json:"acsnLocations"`
OwnedDeviceLocations DeviceLocations `json:"ownedDeviceLocations"`
}