forked from hoisie/twitterstream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
141 lines (126 loc) · 3.85 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
package twitterstream
type User struct {
ContributorsEnabled *bool `json:"contributors_enabled"`
CreatedAt string `json:"created_at"`
Description *string
FavoritesCount uint32 `json:"favorites_count"`
FollowersCount uint32 `json:"followers_count"`
FriendsCount uint32 `json:"friends_count"`
GeoEnabled bool `json:"geo_enabled"`
Id uint64
Lang *string
Location *string
Name *string
Notifications *bool
ProfileBackgroundColor *string `json:"profile_background_color"`
ProfileBackgroundImageUrl *string `json:"profile_background_image_url;"`
ProfileBackgroundTile *bool `json:"profile_background_tile"`
ProfileImageUrl *string `json:"profile_image_url"`
ProfileLinkColor *string `json:"profile_link_color"`
ProfileSidebarBorderColor *string `json:"profile_sidebar_border_color"`
ProfileSidebarFillColor *string `json:"profile_sidebar_fill_color"`
ProfileTextColor *string `json:"profile_text_color"`
ProfileUseBackgroundImage bool `json:"profile_use_background_image"`
Protected bool
Status *Tweet
StatusesCount uint32 `json:"statuses_count"`
TimeZone *string `json:"time_zone"`
Url *string
UtcOffset int32
Verified bool
}
type Url struct {
DisplayUrl *string `json:"display_url"`
ExpandedUrl *string `json:"expanded_url"`
Indices []uint32
Url *string
}
type UserMention struct {
Id uint64
IdStr string `json:"id_str"`
Indices []uint32
Name string
ScreenName string `json:"screen_name"`
}
type BoundingBox struct {
Type string
Coordinates [][][]float32
}
type Entities struct {
Hashtags []Hashtag
Media []Media
Urls []Url
UserMentions []UserMention `json:"user_mentions"`
}
type Geo struct {
Type string
Coordinates []float32
}
type Hashtag struct {
Indices []uint32
Text string
}
type Media struct {
DisplayUrl string
ExpandedUrl string
Id uint64
IdStr string `json:"id_str"`
Indices []uint32
MediaUrl string `json:"media_url"`
MediaUrlHttps string `json:"media_url_https"`
Sizes map[string]MediaSize
Type string
Url string
}
type MediaSize struct {
Height uint32 `json:"h"`
Resize string
Width uint32 `json:"w"`
}
type Place struct {
Attributres map[string]string
BoundingBox *BoundingBox `json:"bounding_box"`
Country string
CountryCode string `json:"country_code"`
FullName string `json:"full_name"`
Id string
Name string
PlaceType string `json:place_type"`
Url string
}
type Tweet struct {
Annotations *string
CreatedAt string `json:"created_at"`
Contributors *string
Coordinates *Geo
Entities *Entities
Favorited bool
Geo *Geo
Id uint64
IdStr *string `json:"id_str"`
InReplyToScreenName *string `json:"in_reply_to_screen_name"`
InReplyToStatusId *uint64 `json:"in_reply_to_status_id"`
InReplyToStatusIdStr *string `json:"in_reply_to_status_id_str"`
InReplyToUserId *uint64 `json:"in_reply_to_user_id"`
InReplyToUserIdStr *string `json:"in_reply_to_user_id_str"`
Place *Place
RetweetCount uint32 `json:"retweet_count"`
Retweeted bool
Source string
Text string
Truncated bool
User *User
}
type SiteStreamMessage struct {
For_user int64
Message Tweet
}
type Event struct {
Target User
Source User
Created_at string
Event string
}
type FriendList struct {
Friends []int64
}