-
Notifications
You must be signed in to change notification settings - Fork 1
/
thing.go
18 lines (17 loc) · 833 Bytes
/
thing.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package grokeddit
/* Represents any type of thing in reddit. Some fields may be
empty/invalid for the particular type. */
type Thing struct {
Author string // name of the poster
CreatedUtc int64 // utc of creation time
Id GlobalId // uniquely indentifies the thing
LastUpdateUtc int64 // utc of last update
LinkId GlobalId // identifies the link associated to a comment
ParentId GlobalId // parent id of a comment. null if no parent id exists
Replies Groked // replies to a comment
Subreddit string // name of the subreddit associated with the thing
SubredditId GlobalId // uniquely identifies the subreddit associated with the thing
Text_html string // html from post
Title string // title of the post
Url string // url of the post
}