-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpodcast.go
61 lines (54 loc) · 1.8 KB
/
podcast.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
50
51
52
53
54
55
56
57
58
59
60
61
package main
import (
"time"
)
type MixcloudPaging struct {
Previous string `json:"previous"`
Next string `json:"next"`
}
type MixcloudTags struct {
Url string `json:"url"`
Name string `json:"name"`
Key string `json:"key"`
}
type MixcloudPictures struct {
Medium string `json:"medium"`
S768wx768h string `json:"768wx768h"`
S320wx320h string `json:"320wx320h"`
ExtraLarge string `json:"extra_large"`
Large string `json:"large"`
S640wx640h string `json:"640wx640h"`
MediumMobile string `json:"medium_mobile"`
Small string `json:"small"`
S1024wx1024h string `json:"1024wx1024h"`
Thumbnail string `json:"thumbnail"`
}
type MixcloudUser struct {
Url string `json:"url"`
Username string `json:"username"`
Name string `json:"name"`
Key string `json:"key"`
Pictures MixcloudPictures `json:"pictures"`
}
type MixcloudData struct {
Tags []MixcloudTags `json:"tags"`
PlayCount int `json:"play_count"`
User MixcloudUser `json:"user"`
Key string `json:"key"`
CreatedTime time.Time `json:"created_time"`
AudioLength int `json:"audio_length"`
Slug string `json:"slug"`
FavoriteCount int `json:"favourite_count"`
ListenerCount int `json:"listener_count"`
Name string `json:"name"`
Url string `json:"url"`
Pictures MixcloudPictures `json:"pictures"`
RepostCount int `json:"repost_count"`
UpdatedTime time.Time `json:"updated_time"`
CommentCount int `json:"comment_count"`
}
type MixcloudPodcast struct {
Paging MixcloudPaging `json:"paging"`
Data []MixcloudData `json:"data"`
Name string `json:"name"`
}