-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.go
More file actions
35 lines (29 loc) · 787 Bytes
/
models.go
File metadata and controls
35 lines (29 loc) · 787 Bytes
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 main
type iPropertyData struct {
Data iPropertyDatum `json:"data"`
}
type iPropertyDatum struct {
ACSListing iPropertyACSListing `json:"ascListings"`
}
type iPropertyACSListing struct {
Items []iPropertyItem `json:"items"`
TotalCount int `json:"totalCount"`
NextPageToken string `json:"nextPageToken"`
}
type iPropertyItem struct {
Id string `json:"id"`
Address iPropertyAddress `json:"address"`
Prices []iPropertyPrice `json:"prices"`
}
type iPropertyAddress struct {
FormattedAddress string `json:"formattedAddress"`
Latitude float64 `json:"lat"`
Longitude float64 `json:"lng"`
}
type iPropertyPrice struct {
Type string `json:"type"`
Currency string `json:"currency"`
Min int `json:"min"`
Max int `json:"max"`
MonthlyPayment int `json:"monthlyPayment"`
}