forked from hoisie/twitterstream
-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
194 lines (178 loc) · 4.71 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
package twitterstream
type Hashtags struct {
Indices [2]uint32
Text string
}
type Urls struct {
Url string
Indices [2]uint32
Display_url string
Expanded_url string
}
type User_mentions struct {
Indices [2]uint32
Screen_name string
Id_str string
Name string
Id uint64
}
type Media struct {
Id uint64
Id_str string
Media_url string
Media_url_https string
Url string
Display_url string
Expanded_url string
Type string
Indices [2]uint32
Screen_name string
Sizes []Sizes
}
type Sizes struct {
large map[string]Dimensions
medium map[string]Dimensions
small map[string]Dimensions
thumb map[string]Dimensions
}
type Dimensions struct {
w uint32
resize string
h uint32
}
type Entities struct {
Hashtags []Hashtags
Urls []Urls
User_mentions []User_mentions
Media []Media
}
type Place struct {
Name string
Url string
Country_code string
Id string
Display_url string
Place_type string
Country string
Full_name string
Attributes map[string]string
Bounding_box Box
}
type Geo struct {
Type string
Coordinates []float32
}
type Box struct {
Type string
Coordinates [][][]float32
}
type User struct {
Contributors_enabled bool
Created_at string
Default_profile_image bool
Default_profile bool
Description string
Favourites_count uint32
Followers_count uint32
Follow_request_sent *bool
Following *bool
Friends_count uint32
Geo_enabled bool
Id uint64
Id_str string
Is_translator bool
Lang string
Listed_count uint32
Location string
Name string
Notifications *bool
Profile_background_color string
Profile_background_image_url string
Profile_background_image_url_https string
Profile_background_tile bool
Profile_image_url string
Profile_image_url_https string
Profile_link_color string
Profile_sidebar_border_color string
Profile_sidebar_fill_color string
Profile_text_color string
Profile_use_background_image bool
Protected bool
Screen_name string
Show_all_inline_media bool
Statuses_count uint32
Time_zone string
Url string
Utc_offset int16
Verified bool
}
type Tweet struct {
Contributors *string
Created_at string
Favorited bool
Id uint64
Id_str string
In_reply_to_screen_name *string
In_reply_to_status_id *uint64
In_reply_to_status_id_str *string
In_reply_to_user_id *uint64
In_reply_to_user_id_str *string
Possibly_sensitive bool
Retweeted bool
Retweeted_count uint32
Retweeted_status Retweet
Source string
Text string
Truncated bool
Coordinates Geo
Entities Entities
User User
Place Place
Geo Geo
}
type Metadata struct {
Result_type string
}
type Retweet struct {
Retweeted_count uint32
Created_at string
Retweeted bool
Truncated bool
Coordinates Geo
Geo Geo
User User
}
type Results struct {
Created_at string
From_user string
From_user_id uint64
From_user_id_name string
From_user_id_str string
Id uint64
Id_str string
Iso_language_code string
Profile_image_url string
Profile_image_url_https string
Source string
Text string
To_user *string
To_user_id uint64
To_user_id_s *string
To_user_name *string
Metadata Metadata
Entities Entities
}
type Query struct {
Completed_in float32
Max_id uint64
Max_id_str string
Next_page string
Page uint8
Previous_page string
Query string
Refresh_url string
Results_per_page uint8
Since_id uint8
Since_id_str string
Results []Results
}