-
Notifications
You must be signed in to change notification settings - Fork 1
/
comment.go
45 lines (41 loc) · 1.12 KB
/
comment.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
package grow
// Type: t1_, reddit comment wrapper
type commentThing struct {
Id string
Name string
Kind string
Data Comment
}
// data payload from a comment wrapper
type Comment struct {
Approved_by interface{}
Author interface{}
Author_flair_css_class interface{}
Author_flair_text interface{}
Banned_by interface{}
Body interface{}
Body_html interface{}
Edited interface{}
Gilded float64
Id string
Likes bool
Link_id interface{}
Link_title interface{}
Name string
Num_reports float64
Parent_id interface{}
Score_hidden bool
Subreddit interface{}
Subreddit_id interface{}
Distinguished interface{}
Ups float64
Downs float64
}
// Upvote this comment for the authed user
func (self *Comment) Upvote() error {
return nil
}
// Downvote this comment for the authed user
func (self *Comment) Downvote() error {
return nil
}