-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels_me.go
49 lines (42 loc) · 1.05 KB
/
models_me.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package tado
import "net/http"
// Me contains the users data
type Me struct {
Name string `json:"name"`
Email string `json:"email"`
Username string `json:"username"`
ID string `json:"id"`
Homes []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"homes"`
Locale string `json:"locale"`
MobileDevices []struct {
Name string `json:"name"`
ID int `json:"id"`
Settings struct {
GeoTrackingEnabled bool `json:"geoTrackingEnabled"`
} `json:"settings"`
DeviceMetadata struct {
Platform string `json:"platform"`
OsVersion string `json:"osVersion"`
Model string `json:"model"`
Locale string `json:"locale"`
} `json:"deviceMetadata"`
} `json:"mobileDevices"`
}
// GetMeInput is the input for GetMe
type GetMeInput struct{}
func (gmi *GetMeInput) method() string {
return http.MethodGet
}
func (gmi *GetMeInput) path() string {
return "/v2/me"
}
func (gmi *GetMeInput) body() interface{} {
return nil
}
// GetMeOutput is the output for GetMe
type GetMeOutput struct {
Me
}