-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_tag_feed.go
150 lines (143 loc) · 6.93 KB
/
model_tag_feed.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
package instagram
// TagFeed struct
type TagFeed struct {
RankedItems []struct {
Code string `json:"code"`
Usertags struct {
In []struct {
Position []float64 `json:"position"`
User TagFeedUser2 `json:"user"`
} `json:"in"`
} `json:"usertags,omitempty"`
MaxNumVisiblePreviewComments int `json:"max_num_visible_preview_comments"`
LikeCount int `json:"like_count"`
ImageVersions2 TagFeedImageVersions2 `json:"image_versions2"`
ID string `json:"id"`
ClientCacheKey string `json:"client_cache_key"`
Comments []TagFeedComments `json:"comments"`
DeviceTimestamp float64 `json:"device_timestamp"`
CommentCount int `json:"comment_count"`
MediaType int `json:"media_type"`
OrganicTrackingToken string `json:"organic_tracking_token"`
CaptionIsEdited bool `json:"caption_is_edited"`
OriginalHeight int `json:"original_height"`
FilterType int `json:"filter_type"`
User TagFeedUser `json:"user"`
Pk int64 `json:"pk"`
HasLiked bool `json:"has_liked"`
HasMoreComments bool `json:"has_more_comments"`
PhotoOfYou bool `json:"photo_of_you"`
Caption TagFeedCaption `json:"caption"`
TakenAt float64 `json:"taken_at"`
OriginalWidth int `json:"original_width"`
Lng float64 `json:"lng,omitempty"`
Location TagFeedLocation `json:"location,omitempty"`
Lat float64 `json:"lat,omitempty"`
} `json:"ranked_items"`
Status string `json:"status"`
NumResults int `json:"num_results"`
AutoLoadMoreEnabled bool `json:"auto_load_more_enabled"`
Items []struct {
Code string `json:"code"`
MaxNumVisiblePreviewComments int `json:"max_num_visible_preview_comments"`
LikeCount int `json:"like_count"`
ImageVersions2 TagFeedImageVersions2 `json:"image_versions2"`
Lng float64 `json:"lng,omitempty"`
ID string `json:"id"`
ClientCacheKey string `json:"client_cache_key"`
Comments []TagFeedComments `json:"comments"`
DeviceTimestamp float64 `json:"device_timestamp"`
CommentCount int `json:"comment_count"`
Location TagFeedLocation `json:"location,omitempty"`
MediaType int `json:"media_type"`
OrganicTrackingToken string `json:"organic_tracking_token"`
CaptionIsEdited bool `json:"caption_is_edited"`
OriginalHeight int `json:"original_height"`
FilterType int `json:"filter_type"`
User TagFeedUser `json:"user"`
Pk int64 `json:"pk"`
Lat float64 `json:"lat,omitempty"`
HasLiked bool `json:"has_liked"`
HasMoreComments bool `json:"has_more_comments"`
PhotoOfYou bool `json:"photo_of_you"`
Caption TagFeedCaption `json:"caption"`
TakenAt float64 `json:"taken_at"`
OriginalWidth int `json:"original_width"`
} `json:"items"`
MoreAvailable bool `json:"more_available"`
NextMaxID string `json:"next_max_id"`
Message string `json:"message"` // from Error
}
// TagFeedImageVersions2 struct
type TagFeedImageVersions2 struct {
Candidates []struct {
URL string `json:"url"`
Width int `json:"width"`
Height int `json:"height"`
} `json:"candidates"`
}
// TagFeedLocation struct
type TagFeedLocation struct {
ExternalSource string `json:"external_source"`
City string `json:"city"`
Name string `json:"name"`
FacebookPlacesID int64 `json:"facebook_places_id"`
ExternalID interface{} `json:"external_id"`
State string `json:"state"`
Address string `json:"address"`
Lat float64 `json:"lat"`
Pk int `json:"pk"`
Lng float64 `json:"lng"`
FoursquareV2ID interface{} `json:"foursquare_v2_id"`
}
// TagFeedUser struct
type TagFeedUser struct {
Username string `json:"username"`
HasAnonymousProfilePicture bool `json:"has_anonymous_profile_picture"`
IsUnpublished bool `json:"is_unpublished"`
FriendshipStatus struct {
Following bool `json:"following"`
OutgoingRequest bool `json:"outgoing_request"`
} `json:"friendship_status"`
ProfilePicURL string `json:"profile_pic_url"`
IsFavorite bool `json:"is_favorite"`
FullName string `json:"full_name"`
Pk int `json:"pk"`
IsPrivate bool `json:"is_private"`
}
// TagFeedCaption struct
type TagFeedCaption struct {
Status string `json:"status"`
UserID int `json:"user_id"`
CreatedAtUtc int `json:"created_at_utc"`
CreatedAt int `json:"created_at"`
BitFlags int `json:"bit_flags"`
User TagFeedUser2 `json:"user"`
ContentType string `json:"content_type"`
Text string `json:"text"`
MediaID int64 `json:"media_id"`
Pk int64 `json:"pk"`
Type int `json:"type"`
}
// TagFeedComments struct
type TagFeedComments struct {
Status string `json:"status"`
UserID int `json:"user_id"`
CreatedAtUtc int `json:"created_at_utc"`
CreatedAt int `json:"created_at"`
BitFlags int `json:"bit_flags"`
User TagFeedUser2 `json:"user"`
ContentType string `json:"content_type"`
Text string `json:"text"`
MediaID int64 `json:"media_id"`
Pk int64 `json:"pk"`
Type int `json:"type"`
}
// TagFeedUser2 struct
type TagFeedUser2 struct {
Username string `json:"username"`
Pk int `json:"pk"`
ProfilePicURL string `json:"profile_pic_url"`
IsPrivate bool `json:"is_private"`
FullName string `json:"full_name"`
}