-
Notifications
You must be signed in to change notification settings - Fork 3
/
types.go
48 lines (43 loc) · 1.3 KB
/
types.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
package bing
// Response structure stores bing api response from json.
type Response struct {
Images []Image `json:"images"`
Tooltip Tooltip `json:"tooltip"`
}
// Request structure stores bing api request to json.
type Request struct {
Format string `url:"format"`
Index int `url:"idx"`
Number int `url:"n"`
Mkt string `url:"mkt"`
}
// Image structure stores bing image information.
type Image struct {
StartDate string `json:"startdate"`
FullStartDate string `json:"fullstartdate"`
EndDate string `json:"enddate"`
URL string `json:"url"`
URLBase string `json:"urlbase"`
Copyright string `json:"copyright"`
CopyrightLink string `json:"copyrightlink"`
Wallpaper bool `json:"wp"`
Hash string `json:"hsh"`
Drk int `json:"drk"`
Top int `json:"top"`
Bot int `json:"bot"`
HS []HS `json:"hs"`
Msg []string `json:"msg"`
}
// HS structure ...
type HS struct {
Description string `json:"desc"`
Link string `json:"link"`
}
// Tooltip structure ...
type Tooltip struct {
Loading string `json:"loading"`
Previous string `json:"previous"`
Next string `json:"next"`
WallpaperSave string `json:"walls"`
WallpaperError string `json:"walle"`
}