forked from ChimeraCoder/anaconda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitter_entities.go
73 lines (66 loc) · 1.39 KB
/
twitter_entities.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
62
63
64
65
66
67
68
69
70
71
72
73
package anaconda
type UrlEntity struct {
Urls []struct {
Indices []int
Url string
Display_url string
Expanded_url string
}
}
type Entities struct {
Hashtags []struct {
Indices []int
Text string
}
Urls []struct {
Indices []int
Url string
Display_url string
Expanded_url string
}
Url UrlEntity
User_mentions []struct {
Name string
Indices []int
Screen_name string
Id int64
Id_str string
}
Media []EntityMedia
}
type EntityMedia struct {
Id int64
Id_str string
Media_url string
Media_url_https string
Url string
Display_url string
Expanded_url string
Sizes MediaSizes
Source_status_id int64
Source_status_id_str string
Type string
Indices []int
VideoInfo VideoInfo `json:"video_info"`
}
type MediaSizes struct {
Medium MediaSize
Thumb MediaSize
Small MediaSize
Large MediaSize
}
type MediaSize struct {
W int
H int
Resize string
}
type VideoInfo struct {
AspectRatio []int `json:"aspect_ratio"`
DurationMillis int64 `json:"duration_millis"`
Variants []Variant `json:"variants"`
}
type Variant struct {
Bitrate int `json:"bitrate"`
ContentType string `json:"content_type"`
Url string `json:"url"`
}