-
Notifications
You must be signed in to change notification settings - Fork 1
/
link.go
53 lines (49 loc) · 1.33 KB
/
link.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
package grow
// Type: t3_, reddit link wrapper
type linkThing struct {
Id string
Name string
Kind string
Data Link
}
// data payload from a link wrapper
type Link struct {
Author interface{}
Author_flair_css_class interface{}
Autho_flair_text interface{}
Clicked bool
Domain interface{}
Hidden bool
Id string
Is_self bool
Likes bool
Link_flair_css_class interface{}
Link_flair_text interface{}
Media struct{}
Media_embed struct{}
Name string
Num_comments float64
Over_18 bool
Permalink interface{}
Saved bool
Score float64
Selftext interface{}
Selftext_html interface{}
Subreddit interface{}
Subreddit_id interface{}
Thumbnail interface{}
Title interface{}
Url interface{}
Edited float64
Distinguished interface{}
Ups float64
Downs float64
}
// upvote the link for the authed user
func (self *Link) Upvote() error {
return nil
}
// downvote the link for the authed user
func (self *Link) Downvote() error {
return nil
}