models

package
v1.1.3-0...-6ec8b5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Kind string                         `json:"kind"`
	Data CommentListingDataChildrenData `json:"data"`
}

func (Comment) GetAuthor

func (ldc Comment) GetAuthor() string

func (Comment) GetBody

func (ldc Comment) GetBody() string

func (Comment) GetCreated

func (ldc Comment) GetCreated() float64

func (Comment) GetDowns

func (ldc Comment) GetDowns() float64

func (Comment) GetFlair

func (ldc Comment) GetFlair() string

func (Comment) GetId

func (ldc Comment) GetId() string

func (Comment) GetKarma

func (ldc Comment) GetKarma() float64

func (Comment) GetName

func (ldc Comment) GetName() string

func (Comment) GetParentId

func (ldc Comment) GetParentId() string

func (Comment) GetSubreddit

func (ldc Comment) GetSubreddit() string

func (Comment) GetTitle

func (ldc Comment) GetTitle() string

func (Comment) GetUps

func (ldc Comment) GetUps() float64

func (Comment) GetUrl

func (ldc Comment) GetUrl() string

func (Comment) IsComment

func (ldc Comment) IsComment() bool

func (Comment) IsCommentReply

func (ldc Comment) IsCommentReply() bool

func (Comment) IsMention

func (ldc Comment) IsMention() bool

func (Comment) IsRoot

func (ldc Comment) IsRoot() bool

type CommentJson

type CommentJson struct {
	Errors []string        `json:"errors"`
	Data   CommentJsonData `json:"data"`
}

type CommentJsonData

type CommentJsonData struct {
	Things []CommentJsonDataThing `json:"things"`
}

type CommentJsonDataThing

type CommentJsonDataThing struct {
	Kind string                   `json:"kind"`
	Data CommentJsonDataThingData `json:"data"`
}

type CommentJsonDataThingData

type CommentJsonDataThingData struct {
	AuthorFlairBackgroundColor string   `json:"author_flair_background_color"`
	TotalAwardsReceived        float64  `json:"total_awards_received"`
	ApprovedAtUtc              string   `json:"approved_at_utc"`
	Distinguished              string   `json:"distinguished"`
	ModReasonBy                string   `json:"mod_reason_by"`
	BannedBy                   string   `json:"banned_by"`
	AuthorFlairType            string   `json:"author_flair_type"`
	RemovalReason              string   `json:"removal_reason"`
	LinkId                     string   `json:"link_id"`
	AuthorFlairTemplateId      string   `json:"author_flair_template_id"`
	Likes                      bool     `json:"likes"`
	Replies                    string   `json:"replies"`
	UserReports                []string `json:"user_reports"`
	Saved                      bool     `json:"saved"`
	Id                         string   `json:"id"`
	BannedAtUtc                string   `json:"banned_at_utc"`
	ModReasonTitle             string   `json:"mod_reason_title"`
	Gilded                     float64  `json:"gilded"`
	Archived                   bool     `json:"archived"`
	NoFollow                   bool     `json:"no_follow"`
	Author                     string   `json:"author"`
	RteMode                    string   `json:"rte_mode"`
	CanModPost                 bool     `json:"can_mod_post"`
	CreatedUtc                 float64  `json:"created_utc"`
	SendReplies                bool     `json:"send_replies"`
	ParentId                   string   `json:"parent_id"`
	Score                      float64  `json:"score"`
	AuthorFullname             string   `json:"author_fullname"`
	ApprovedBy                 string   `json:"approved_by"`
	Mod_note                   string   `json:"mod_note"`
	AllAwardings               []string `json:"all_awardings"`
	SubredditId                string   `json:"subreddit_id"`
	Body                       string   `json:"body"`
	Edited                     bool     `json:"edited"`
	Gildings                   Gilding  `json:"gildings"`
	AuthorFlairCssClass        string   `json:"author_flair_css_class"`
	Name                       string   `json:"name"`
	AuthorPatreonFlair         bool     `json:"author_patreon_flair"`
	Downs                      float64  `json:"downs"`
	AuthorFlairRichtext        []string `json:"author_flair_richtext"`
	IsSubmitter                bool     `json:"is_submitter"`
	CollapsedReason            string   `json:"collapsed_reason"`
	BodyHtml                   string   `json:"body_html"`
	Stickied                   bool     `json:"stickied"`
	CanGild                    bool     `json:"can_gild"`
	Removed                    bool     `json:"removed"`
	Approved                   bool     `json:"approved"`
	AuthorFlairTextColor       string   `json:"author_flair_text_color"`
	ScoreHidden                bool     `json:"score_hidden"`
	Permalink                  string   `json:"permalink"`
	NumReports                 float64  `json:"num_reports"`
	Locked                     bool     `json:"locked"`
	ReportReasons              []string `json:"report_reasons"`
	Created                    float64  `json:"created"`
	Subreddit                  string   `json:"subreddit"`
	AuthorFlairText            string   `json:"author_flair_text"`
	Spam                       bool     `json:"spam"`
	Collapsed                  bool     `json:"collapsed"`
	SubredditNamePrefixed      string   `json:"subreddit_name_prefixed"`
	Controversiality           float64  `json:"controversiality"`
	IgnoreReports              bool     `json:"ignore_reports"`
	ModReports                 []string `json:"mod_reports"`
	SubredditType              string   `json:"subreddit_type"`
	Ups                        float64  `json:"ups"`
}

type CommentListing

type CommentListing struct {
	Kind string             `json:"kind"`
	Data CommentListingData `json:"data"`
}

func (*CommentListing) GetChildren

func (l *CommentListing) GetChildren() []Comment

type CommentListingData

type CommentListingData struct {
	Modhash  string    `json:"modhash"`
	Dist     float64   `json:"dist"`
	Children []Comment `json:"children"`
	After    string    `json:"after"`
	Before   string    `json:"before"`
}

type CommentListingDataChildrenData

type CommentListingDataChildrenData struct {
	FirstMessage          string        `json:"first_message"`
	FirstMessageName      string        `json:"first_message_name"`
	Subreddit             string        `json:"subreddit"`
	Likes                 string        `json:"likes"`
	Replies               string        `json:"replies"`
	Id                    string        `json:"id"`
	Subject               string        `json:"subject"`
	WasComment            bool          `json:"was_comment"`
	Score                 float64       `json:"score"`
	Author                string        `json:"author"`
	NumComments           float64       `json:"num_comments"`
	ParentId              string        `json:"parent_id"`
	SubredditNamePrefixed string        `json:"subreddit_name_prefixed"`
	New                   bool          `json:"new"`
	Body                  string        `json:"body"`
	LinkTitle             string        `json:"link_title"`
	LinkId                string        `json:"link_id"`
	Permalink             string        `json:"permalink"`
	Dest                  string        `json:"dest"`
	BodyHtml              string        `json:"body_html"`
	Name                  string        `json:"name"`
	Created               float64       `json:"created"`
	Created_utc           float64       `json:"created_utc"`
	Context               string        `json:"context"`
	Distinguished         string        `json:"distinguished"`
	Children              []string      `json:"children"`
	ModReasonBy           string        `json:"mod_reason_by"`
	RemovalReason         string        `json:"removal_reason"`
	BannedBy              string        `json:"banned_by"`
	BannedAtUtc           float64       `json:"banned_at_utc"`
	UserReports           []interface{} `json:"user_reports"`
}

type CommentWrap

type CommentWrap struct {
	Json CommentJson `json:"json"`
}

func (CommentWrap) CreatedAt

func (c CommentWrap) CreatedAt() float64

func (CommentWrap) GetAuthor

func (c CommentWrap) GetAuthor() string

func (CommentWrap) GetAuthorId

func (c CommentWrap) GetAuthorId() string

func (CommentWrap) GetBody

func (c CommentWrap) GetBody() string

func (CommentWrap) GetDowns

func (c CommentWrap) GetDowns() float64

func (CommentWrap) GetId

func (c CommentWrap) GetId() string

func (CommentWrap) GetParentId

func (c CommentWrap) GetParentId() string

func (CommentWrap) GetScore

func (c CommentWrap) GetScore() float64

func (CommentWrap) GetSubreddit

func (c CommentWrap) GetSubreddit() string

func (CommentWrap) GetSubredditId

func (c CommentWrap) GetSubredditId() string

func (CommentWrap) GetUps

func (c CommentWrap) GetUps() float64

func (CommentWrap) IsApproved

func (c CommentWrap) IsApproved() bool

func (CommentWrap) IsAuthor

func (c CommentWrap) IsAuthor() bool

func (CommentWrap) IsRemoved

func (c CommentWrap) IsRemoved() bool

func (CommentWrap) IsSticky

func (c CommentWrap) IsSticky() bool

type Gilding

type Gilding struct {
	Gid map[string]int `json:"gid"`
}

type Me

type Me struct {
	IsEmployee              bool        `json:"is_employee"`
	SeenLayoutSwitch        bool        `json:"seen_layout_switch"`
	HasVisitedNewProfile    bool        `json:"has_visited_new_profile"`
	PrefNoProfanity         bool        `json:"pref_no_profanity"`
	HasExternalAccount      bool        `json:"has_external_account"`
	PrefGeopopular          string      `json:"pref_geopopular"`
	SeenRedesignModal       bool        `json:"seen_redesign_modal"`
	PrefShowTrending        bool        `json:"pref_show_trending"`
	Subreddit               Subreddit_s `json:"subreddit"`
	IsSponsor               bool        `json:"is_sponsor"`
	GoldExpiration          float64     `json:"gold_expiration"`
	HasGoldSubscription     bool        `json:"has_gold_subscription"`
	NumFriends              float64     `json:"num_friends"`
	Features                MeFeatures  `json:"features"`
	HasAndroidSubscription  bool        `json:"has_android_subscription"`
	Verified                bool        `json:"verified"`
	NewModmailExists        bool        `json:"new_modmail_exists"`
	PrefAutoplay            bool        `json:"pref_autoplay"`
	Coins                   float64     `json:"coins"`
	HasPaypalSubscription   bool        `json:"has_paypal_subscription"`
	HasSubscribedToPremium  bool        `json:"has_subscribed_to_premium"`
	Id                      string      `json:"id"`
	HasStripeSubscription   bool        `json:"has_stripe_subscription"`
	SeenPremiumAdblockModal bool        `json:"seen_premium_adblock_modal"`
	CanCreateSubreddit      bool        `json:"can_create_subreddit"`
	Over18                  bool        `json:"over_18"`
	IsGold                  bool        `json:"is_gold"`
	IsMod                   bool        `json:"is_mod"`
	SuspensionExpirationUtc float64     `json:"suspension_expiration_utc"`
	HasVerifiedEmail        bool        `json:"has_verified_email"`
	IsSuspended             bool        `json:"is_suspended"`
	PrefVideoAutoplay       bool        `json:"pref_video_autoplay"`
	InChat                  bool        `json:"in_chat"`
	InRedesignBeta          bool        `json:"in_redesign_beta"`
	IconImg                 string      `json:"icon_img"`
	HasModMail              bool        `json:"has_mod_mail"`
	PrefNightmode           bool        `json:"pref_nightmode"`
	OauthClientId           bool        `json:"oauth_client_id"`
	HideFromRobots          bool        `json:"hide_from_robots"`
	LinkKarma               float64     `json:"link_karma"`
	ForcePasswordReset      bool        `json:"force_password_reset"`
	InboxCount              float64     `json:"inbox_count"`
	PrefTopKarmaSubreddits  bool        `json:"pref_top_karma_subreddits"`
	HasMail                 bool        `json:"has_mail"`
	PrefShowSnoovatar       bool        `json:"pref_show_snoovatar"`
	Name                    string      `json:"name"`
	PrefClickgadget         float64     `json:"pref_clickgadget"`
	Created                 float64     `json:"created"`
	GoldCreddits            float64     `json:"gold_creddits"`
	HasIosSubscription      bool        `json:"has_ios_subscription"`
	PrefShowTwitter         bool        `json:"pref_show_twitter"`
	InBeta                  bool        `json:"in_beta"`
	CommentKarma            float64     `json:"comment_karma"`
	HasSubscribed           bool        `json:"has_subscribed"`
	SeenSubredditChatFtux   bool        `json:"seen_subreddit_chat_ftux"`
}

func (Me) GetAuthor

func (me Me) GetAuthor() string

func (Me) GetBody

func (me Me) GetBody() string

func (Me) GetCreated

func (me Me) GetCreated() float64

func (Me) GetDowns

func (me Me) GetDowns() float64

func (Me) GetFlair

func (me Me) GetFlair() string

func (Me) GetId

func (me Me) GetId() string

func (Me) GetKarma

func (me Me) GetKarma() float64

func (Me) GetName

func (me Me) GetName() string

func (Me) GetParentId

func (me Me) GetParentId() string

func (Me) GetSubreddit

func (me Me) GetSubreddit() string

func (Me) GetTitle

func (me Me) GetTitle() string

func (Me) GetUps

func (me Me) GetUps() float64

func (Me) GetUrl

func (me Me) GetUrl() string

func (Me) IsRoot

func (me Me) IsRoot() bool

type MeFeatures

type MeFeatures struct {
	RichtextPreviews                          bool         `json:"richtext_previews"`
	DoNotTrack                                bool         `json:"do_not_track"`
	ChatSubreddit                             bool         `json:"chat_subreddit"`
	Chat                                      bool         `json:"chat"`
	SeqRandomizeSort                          bool         `json:"seq_randomize_sort"`
	Sequence                                  bool         `json:"sequence"`
	MwebXpromoRevampV2                        MeSubFeature `json:"mweb_xpromo_revamp_v2"`
	MwebXpromoFloat64erstitialCommentsIos     bool         `json:"mweb_xpromo_float64erstitial_comments_ios"`
	ChatReddarReports                         bool         `json:"chat_reddar_reports"`
	ChatRollout                               bool         `json:"chat_rollout"`
	MwebXpromoFloat64erstitialCommentsAndroid bool         `json:"mwev_xpromo_float64erstitial_comments_android"`
	ChatGroutRollout                          bool         `json:"chat_group_rollout"`
	MwebLinkTab                               MeSubFeature `json:"mweb_link_tab"`
	SpezModal                                 bool         `json:"spez_modal"`
	CommunityAwards                           bool         `json:"community_awards"`
	DefaultSrsHoldout                         MeSubFeature `json:"default_srs_holdout"`
	ChatUserSettings                          bool         `json:"chat_user_settings"`
	DualWriteUserPrefs                        bool         `json:"dual_write_user_prefs"`

	MwebXpromoModalListingClickDailyDismissibleAndroid bool `json:"mweb_xpromo_modal_listing_click_daily_dismissible_ios"`
	MwebXpromoModalListingClickDailyDismisssibleIos    bool `json:"mweb_xpromo_modal_listing_click_daily_dismissible_android"`
}

type MeSubFeature

type MeSubFeature struct {
	Owner        string  `json:"owner"`
	Variant      string  `json:"variant"`
	ExperimentId float64 `json:"experiment_id"`
}

type ModQueueListing

type ModQueueListing struct {
	Kind string              `json:"kind"`
	Data ModQueueListingData `json:"data"`
}

func (*ModQueueListing) GetChildren

func (mql *ModQueueListing) GetChildren() []ModQueueListingChild

type ModQueueListingChild

type ModQueueListingChild struct {
	Kind string               `json:"kind"`
	Data PostListingChildData `json:"data"`
}

func (ModQueueListingChild) GetId

func (mql ModQueueListingChild) GetId() string

func (ModQueueListingChild) GetKind

func (mql ModQueueListingChild) GetKind() string

type ModQueueListingData

type ModQueueListingData struct {
	Modhash  string                 `json:"modhash"`
	Dist     float64                `json:"dist"`
	Children []ModQueueListingChild `json:"children"`
}

type PostAward

type PostAward struct {
	IsEnabled           bool            `json:"is_enabled"`
	Count               float64         `json:"count"`
	SubredditId         string          `json:"subreddit_id"`
	Description         string          `json:"description"`
	CoinReward          float64         `json:"coin_reward"`
	IconWidth           float64         `json:"icon_width"`
	IconUrl             string          `json:"icon_url"`
	DaysOfPremium       float64         `json:"days_of_premium"`
	IconHeight          float64         `json:"icon_height"`
	ResizedIcons        []PostAwardIcon `json:"resized_icons"`
	DaysOfDripExtension float64         `json:"days_of_drip_extension"`
	AwardType           string          `json:"award_type"`
	CoinPrice           float64         `json:"coin_price"`
	Id                  string          `json:"id"`
	Name                string          `json:"name"`
}

type PostAwardIcon

type PostAwardIcon struct {
	Url    string  `json:"url"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type PostListing

type PostListing struct {
	Kind string          `json:"kind"`
	Data PostListingData `json:"data"`
}

func (*PostListing) GetChildren

func (p *PostListing) GetChildren() []PostListingChild

type PostListingChild

type PostListingChild struct {
	Kind   string               `json:"kind"`
	Data   PostListingChildData `json:"data"`
	After  string               `json:"after"`
	Before string               `json:"before"`
}

func (PostListingChild) GetAuthor

func (plc PostListingChild) GetAuthor() string

func (PostListingChild) GetAuthorFlair

func (plc PostListingChild) GetAuthorFlair() string

func (PostListingChild) GetAuthorId

func (plc PostListingChild) GetAuthorId() string

func (PostListingChild) GetBody

func (plc PostListingChild) GetBody() string

func (PostListingChild) GetCommentCount

func (plc PostListingChild) GetCommentCount() float64

func (PostListingChild) GetCreated

func (plc PostListingChild) GetCreated() float64

func (PostListingChild) GetCrosspostCount

func (plc PostListingChild) GetCrosspostCount() float64

func (PostListingChild) GetDowns

func (plc PostListingChild) GetDowns() float64

func (PostListingChild) GetFlair

func (plc PostListingChild) GetFlair() string

func (PostListingChild) GetId

func (plc PostListingChild) GetId() string

func (PostListingChild) GetKarma

func (plc PostListingChild) GetKarma() float64

func (PostListingChild) GetName

func (plc PostListingChild) GetName() string

func (PostListingChild) GetParentId

func (plc PostListingChild) GetParentId() string
func (plc PostListingChild) GetPermalink() string

func (PostListingChild) GetScore

func (plc PostListingChild) GetScore() float64

func (PostListingChild) GetSubreddit

func (plc PostListingChild) GetSubreddit() string

func (PostListingChild) GetSubredditId

func (plc PostListingChild) GetSubredditId() string

func (PostListingChild) GetTitle

func (plc PostListingChild) GetTitle() string

func (PostListingChild) GetUps

func (plc PostListingChild) GetUps() float64

func (PostListingChild) GetUrl

func (plc PostListingChild) GetUrl() string

func (PostListingChild) IsRoot

func (plc PostListingChild) IsRoot() bool

type PostListingChildData

type PostListingChildData struct {
	ApprovedAtUtc              float64            `json:"approved_at_utc"`
	Subreddit                  string             `json:"subreddit"`
	Selftext                   string             `json:"selftext"`
	AuthorFullname             string             `json:"author_fullname"`
	Saved                      bool               `json:"saved"`
	ModReasonTitle             string             `json:"mod_reason_title"`
	Gilded                     float64            `json:"gilded"`
	Clicked                    bool               `json:"clicked"`
	Title                      string             `json:"title"`
	LinkFlairRichtext          string             `json:"link_flair_richtext"`
	SubredditNamePrefixed      string             `json:"subreddit_name_prefixed"`
	Hidden                     bool               `json:"hidden"`
	Pwls                       float64            `json:"pwls"`
	LinkFlairCssClass          string             `json:"link_flair_css_class"`
	Downs                      float64            `json:"downs"`
	ThumbnailHeight            float64            `json:"thumbnail_height"`
	HideScore                  bool               `json:"hide_score"`
	Name                       string             `json:"name"`
	Quarantine                 bool               `json:"quarantine"`
	LinkFlairTextColor         string             `json:"link_flair_text_color"`
	AuthorFlairBackgroundColor string             `json:"author_flair_background_color"`
	SubredditType              string             `json:"subreddit_type"`
	Ups                        float64            `json:"ups"`
	TotalAwardsReceived        float64            `json:"total_awards_received"`
	MediaEmbed                 []string           `json:"media_embed"`
	ThumbnailWidth             float64            `json:"thumbnail_width"`
	AuthorFlairTemplateId      string             `json:"author_flair_template_id"`
	IsOriginalContent          bool               `json:"is_original_content"`
	UserReports                []interface{}      `json:"user_reports"`
	SecureMedia                string             `json:"secure_media"`
	IsRedditMediaDomain        bool               `json:"is_reddit_media_domain"`
	IsMeta                     bool               `json:"is_meta"`
	Category                   string             `json:"category"`
	SecureMediaEmbed           []string           `json:"secure_media_embed"`
	LinkFlairText              string             `json:"link_flair_text"`
	CanModPost                 bool               `json:"can_mod_post"`
	Score                      float64            `json:"score"`
	ApprovedBy                 string             `json:"approved_by"`
	Thumbnail                  string             `json:"thumbnail"`
	Edited                     bool               `json:"edited"`
	AuthorFlairCssClass        string             `json:"author_flair_css_class"`
	AuthorFlairRichtext        []string           `json:"author_flair_richtext"`
	Gildings                   map[string]float64 `json:"gildings"`
	PostHint                   string             `json:"post_hint"`
	ContentCategories          []string           `json:"content_categories"`
	IsSelf                     bool               `json:"is_self"`
	ModNote                    string             `json:"mod_note"`
	Created                    float64            `json:"created"`
	LinkFlairType              string             `json:"link_flair_type"`
	Wls                        float64            `json:"wls"`
	BannedBy                   string             `json:"banned_by"`
	AuthorFlairType            string             `json:"author_flair_type"`
	Domain                     string             `json:"domain"`
	SelftextHtml               string             `json:"selftext_html"`
	Likes                      float64            `json:"likes"`
	SuggestedSort              string             `json:"suggested_sort"`
	BannedAtUtc                float64            `json:"banned_at_utc"`
	ViewCount                  float64            `json:"view_count"`
	Archived                   bool               `json:"archived"`
	NoFollow                   bool               `json:"no_follow"`
	IsCrosspostable            bool               `json:"is_crosspostable"`
	Pinned                     bool               `json:"pinned"`
	Over18                     bool               `json:"over_18"`
	Preview                    PostPreview        `json:"preview"`
	Awardings                  []PostAward        `json:"all_awardings"`
	MediaOnly                  bool               `json:"media_only"`
	CanGild                    bool               `json:"can_gild"`
	Spoiler                    bool               `json:"spoiler"`
	Locked                     bool               `json:"locked"`
	AuthorFlairText            string             `json:"author_flair_text"`
	Visited                    bool               `json:"visited"`
	NumReports                 float64            `json:"num_reports"`
	Distinguished              bool               `json:"distinguished"`
	SubredditId                string             `json:"subreddit_id"`
	ModReasonBy                string             `json:"mod_reason_by"`
	RemovalReason              string             `json:"removal_reason"`
	LinkFlairBackgroundColor   string             `json:"link_flair_background_color"`
	Id                         string             `json:"id"`
	IsRobotIndexable           bool               `json:"is_robot_indexable"`
	ReportReasons              string             `json:"report_reasons"` // WILL BE REMOVED: as reddit's API always returns "This attribute is deprecated. Please use mod_reports and user_reports instead." now
	Author                     string             `json:"author"`
	NumCrossposts              float64            `json:"num_crossposts"`
	NumComments                float64            `json:"num_comments"`
	SendReplies                bool               `json:"send_replies"`
	WhitelistStatus            string             `json:"whitelist_status"`
	ContestMode                bool               `json:"contest_mode"`
	ModReports                 []string           `json:"mod_reports"`
	AuthorPatreonFlair         bool               `json:"author_patreon_flair"`
	AuthorFlairTextColor       string             `json:"author_flair_text_color"`
	Permalink                  string             `json:"permalink"`
	ParentWhitelistStatus      string             `json:"parent_whitelist_status"`
	Stickied                   bool               `json:"stickied"`
	Url                        string             `json:"url"`
	SubredditSubscribers       float64            `json:"subreddit_subscribers"`
	CreatedUtc                 float64            `json:"created_utc"`
	Media                      []string           `json:"media"`
	IsVideo                    bool               `json:"is_video"`
}

type PostListingData

type PostListingData struct {
	Modhash  string             `json:"modhash"`
	Dist     float64            `json:"dist"`
	Children []PostListingChild `json:"children"`
}

type PostPreview

type PostPreview struct {
	Images  []PostPreviewImage `json:"images"`
	Enabled bool               `json:"enabled"`
}

type PostPreviewImage

type PostPreviewImage struct {
	Source      PostPreviewImageSource      `json:"source"`
	Resolutions PostPreviewImageResolutions `json:"resolutions"`
	Variants    []string                    `json:"variants"`
	Id          string                      `json:"id"`
}

type PostPreviewImageResolutions

type PostPreviewImageResolutions struct {
	Url    string  `json:"url"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type PostPreviewImageSource

type PostPreviewImageSource struct {
	Url    string  `json:"url"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type Redditor

type Redditor struct {
	Kind string       `json:"kind"`
	Data RedditorData `json:"data"`
}

func (Redditor) GetAuthor

func (r Redditor) GetAuthor() string

func (Redditor) GetBody

func (r Redditor) GetBody() string

func (Redditor) GetCreated

func (r Redditor) GetCreated() float64

func (Redditor) GetDescription

func (r Redditor) GetDescription() string

func (Redditor) GetDowns

func (r Redditor) GetDowns() float64

func (Redditor) GetFlair

func (r Redditor) GetFlair() string

func (Redditor) GetId

func (r Redditor) GetId() string

func (Redditor) GetKarma

func (r Redditor) GetKarma() float64

func (Redditor) GetName

func (r Redditor) GetName() string

func (Redditor) GetParentId

func (r Redditor) GetParentId() string

func (Redditor) GetSubreddit

func (r Redditor) GetSubreddit() string

func (Redditor) GetTitle

func (r Redditor) GetTitle() string

func (Redditor) GetUps

func (r Redditor) GetUps() float64

func (Redditor) GetUrl

func (r Redditor) GetUrl() string

func (Redditor) IsEmployee

func (r Redditor) IsEmployee() bool

func (Redditor) IsRoot

func (r Redditor) IsRoot() bool

type RedditorData

type RedditorData struct {
	IsEmployee        bool        `json:"is_employee"`
	IconImg           string      `json:"icon_img"`
	PrefShowSnoovatar bool        `json:"pref_show_snoovatar"`
	Name              string      `json:"name"`
	IsFriend          bool        `json:"is_friend"`
	Created           float64     `json:"created"`
	HasSubscribed     bool        `json:"has_subscribed"`
	HideFromRobots    bool        `json:"hide_from_robots"`
	CreatedUtc        float64     `json:"created_utc"`
	LinkKarma         float64     `json:"link_karma"`
	CommentKarma      float64     `json:"comment_karma"`
	IsGold            bool        `json:"is_gold"`
	IsMod             bool        `json:"is_mod"`
	Verified          bool        `json:"verified"`
	Subreddit         Subreddit_s `json:"subreddit"`
	HasVerifiedEmail  bool        `json:"has_verified_email"`
	Id                string      `json:"id"`
}

type ReportListing

type ReportListing struct {
	Kind string            `json:"kind"`
	Data ReportListingData `json:"data"`
}

func (*ReportListing) GetChildren

func (rl *ReportListing) GetChildren() []ReportListingChild

type ReportListingChild

type ReportListingChild struct {
	Kind string               `json:"kind"`
	Data PostListingChildData `json:"data"`
}

func (ReportListingChild) GetId

func (rl ReportListingChild) GetId() string

func (ReportListingChild) GetKind

func (rl ReportListingChild) GetKind() string

func (*ReportListingChild) GetUserReports

func (rl *ReportListingChild) GetUserReports() []UserReport

type ReportListingData

type ReportListingData struct {
	Modhash  string               `json:"modhash"`
	Dist     float64              `json:"dist"`
	Children []ReportListingChild `json:"children"`
}

type Submission

type Submission struct {
	Json SubmissionJson `json:"json"`
}

func (*Submission) GetDraftsCount

func (s *Submission) GetDraftsCount() float64

func (*Submission) GetId

func (s *Submission) GetId() string

func (*Submission) GetUrl

func (s *Submission) GetUrl() string

type SubmissionJson

type SubmissionJson struct {
	Errors []string           `json:"errors"`
	Data   SubmissionJsonData `json:"data"`
}

type SubmissionJsonData

type SubmissionJsonData struct {
	Url         string  `json:"url"`
	DraftsCount float64 `json:"drafts_count"`
	Id          string  `json:"id"`
	Name        string  `json:"name"`
}

type Subreddit

type Subreddit struct {
	Kind string        `json:"kind"`
	Data SubredditData `json:"data"`
}

func (Subreddit) GetAuthor

func (s Subreddit) GetAuthor() string

func (Subreddit) GetBody

func (s Subreddit) GetBody() string

func (Subreddit) GetCreated

func (s Subreddit) GetCreated() float64

func (Subreddit) GetDescription

func (s Subreddit) GetDescription() string

func (Subreddit) GetDisplayName

func (s Subreddit) GetDisplayName() string

func (Subreddit) GetDowns

func (s Subreddit) GetDowns() float64

func (Subreddit) GetFlair

func (s Subreddit) GetFlair() string

func (Subreddit) GetId

func (s Subreddit) GetId() string

func (Subreddit) GetKarma

func (s Subreddit) GetKarma() float64

func (Subreddit) GetName

func (s Subreddit) GetName() string

func (Subreddit) GetParentId

func (s Subreddit) GetParentId() string

func (Subreddit) GetPublicDescription

func (s Subreddit) GetPublicDescription() string

func (Subreddit) GetSubreddit

func (s Subreddit) GetSubreddit() string

func (Subreddit) GetSubscribers

func (s Subreddit) GetSubscribers() float64

func (Subreddit) GetTitle

func (s Subreddit) GetTitle() string

func (Subreddit) GetUps

func (s Subreddit) GetUps() float64

func (Subreddit) GetUrl

func (s Subreddit) GetUrl() string

func (Subreddit) IsOver18

func (s Subreddit) IsOver18() bool

func (Subreddit) IsRoot

func (s Subreddit) IsRoot() bool

type SubredditData

type SubredditData struct {
	UserFlairBackgroundColor   string    `json:"user_flair_background_color"`
	SubmitTextHtml             string    `json:"submit_text_html"`
	RestrictPosting            bool      `json:"restrict_posting"`
	UserIsBanned               bool      `json:"user_is_banned"`
	FreeFormReports            bool      `json:"free_form_reports"`
	WikiEnabled                string    `json:"wiki_enabled"`
	UserIsMuted                bool      `json:"user_is_muted"`
	UserCanFlairInSr           string    `json:"user_can_flair_in_sr"`
	DisplayName                string    `json:"display_name"`
	HeaderImg                  string    `json:"header_img"`
	Title                      string    `json:"title"`
	IconSize                   []float64 `json:"icon_size"`
	PrimaryColor               string    `json:"primary_color"`
	ActiveUserCount            float64   `json:"active_user_count"`
	IconImg                    string    `json:"icon_img"`
	AccountsActive             float64   `json:"accounts_active"`
	PublicTraffic              bool      `json:"public_traffic"`
	Subscribers                float64   `json:"subscribers"`
	UserFlairRichtext          string    `json:"user_flair_richtext"`
	VideostreamLinksCount      float64   `json:"videostream_links_count"`
	Name                       string    `json:"name"`
	Quarantine                 bool      `json:"quarantine"`
	HideAds                    bool      `json:"hide_ads"`
	EmojisEnabled              bool      `json:"emojis_enabled"`
	AdvertiserCategory         string    `json:"advertiser_category"`
	PublicDescription          string    `json:"public_description"`
	CommentScoreHideMins       float64   `json:"comment_score_hide_mins"`
	UserHasFavorited           bool      `json:"user_has_favorited"`
	UserFlairTemplateId        string    `json:"user_flair_template_id"`
	CommunityIcon              string    `json:"community_icon"`
	BannerBackgroundImage      string    `json:"banner_background_image"`
	OriginalContentTagEnabled  bool      `json:"original_content_tag_enabled"`
	SubmitText                 string    `json:"submit_text"`
	DescriptionHtml            string    `json:"description_html"`
	SpoilersEnabled            bool      `json:"spoilers_enabled"`
	HeaderTitle                string    `json:"header_title"`
	HeaderSize                 string    `json:"header_size"`
	UserFlairPosition          string    `json:"user_flair_position"`
	AllOriginalContent         bool      `json:"all_original_content"`
	HasMenuWidget              bool      `json:"has_menu_widget"`
	IsEnrolledInNewModmail     bool      `json:"is_enrolled_in_new_modmail"`
	KeyColor                   string    `json:"key_color"`
	EventPostsEnabled          bool      `json:"event_posts_enabled"`
	CanAssignUserFlair         bool      `json:"can_assign_user_flair"`
	Created                    float64   `json:"created"`
	Wls                        string    `json:"wls"`
	ShowMediaPreview           bool      `json:"show_media_preview"`
	SubmissionType             string    `json:"submission_type"`
	UserIsSubscriber           bool      `json:"user_is_subscriber"`
	DisableContributorRequests bool      `json:"disable_contributor_requests"`
	AllowVideogifs             bool      `json:"allow_videogifs"`
	UserFlairType              string    `json:"user_flair_type"`
	CollapseDeletedComments    bool      `json:"collapse_deleted_comments"`
	EmojisCustomSize           string    `json:"emojis_custom_size"`
	PublicDescriptionHtml      string    `json:"public_description_html"`
	AllowVideos                bool      `json:"allow_videos"`
	NotificationLevel          string    `json:"notification_level"`
	CanAssignLinkFlair         bool      `json:"can_assign_link_flair"`
	AccountsActiveIsFuzzed     bool      `json:"accounts_active_is_fuzzed"`
	SubmitTextLabel            string    `json:"submit_text_label"`
	LinkFlairPosition          string    `json:"link_flair_position"`
	UserSrFlairEnabled         bool      `json:"user_sr_flair_enabled"`
	UserFlairEnabledInSr       bool      `json:"user_flair_enabled_in_sr"`
	AllowDiscovery             bool      `json:"allow_discovery"`
	UserSrThemeEnabled         bool      `json:"user_sr_theme_enabled"`
	LinkFlairEnabled           bool      `json:"link_flair_enabled"`
	SubredditType              string    `json:"subreddit_type"`
	SuggestedCommentSort       string    `json:"suggested_comment_sort"`
	BannerImg                  string    `json:"banner_img"`
	UserFlairText              string    `json:"user_flair_text"`
	BannerBackgroundColor      string    `json:"banner_background_color"`
	ShowMedia                  bool      `json:"show_media"`
	Id                         string    `json:"id"`
	UserIsModerator            bool      `json:"user_is_moderator"`
	Over18                     bool      `json:"over18"`
	Description                string    `json:"description"`
	SubmitLinkLabel            string    `json:"submit_link_label"`
	UserFlairTextColor         string    `json:"user_flair_text_color"`
	RestrictCommenting         bool      `json:"restrict_commenting"`
	UserFlairCssClass          string    `json:"user_flair_css_class"`
	AllowImages                bool      `json:"allow_images"`
	Lang                       string    `json:"lang"`
	WhitelistStatus            string    `json:"whitelist_status"`
	Url                        string    `json:"url"`
	CreatedUtc                 float64   `json:"created_utc"`
	BannerSize                 []float64 `json:"banner_size"`
	MobileBannerImage          string    `json:"mobile_banner_image"`
	UserIsContributor          bool      `json:"user_is_contributor"`
}

type Subreddit_s

type Subreddit_s struct {
	DefaultSet                 bool      `json:"default_set"`
	UserIsContributor          bool      `json:"user_is_contributor"`
	BannerImg                  string    `json:"banner_img"`
	DisableContributorRequests bool      `json:"disable_contributor_requests"`
	UserIsBanned               bool      `json:"user_is_banned"`
	FreeFormReports            bool      `json:"free_form_reports"`
	CommunityIcon              string    `json:"community_icon"`
	ShowMedia                  bool      `json:"show_media"`
	IconColor                  string    `json:"icon_color"`
	UserIsMuted                bool      `json:"user_is_muted"`
	DisplayName                string    `json:"display_name"`
	HeaderImg                  string    `json:"header_img"` // *
	Title                      string    `json:"title"`
	Over18                     bool      `json:"over_18"`
	IconSize                   []float64 `json:"icon_size"`
	PrimaryColor               string    `json:"primary_color"`
	IconImg                    string    `json:"icon_img"`
	Description                string    `json:"description"`
	HeaderSize                 string    `json:"header_size"` // *
	RestrictPosting            bool      `json:"restrict_posting"`
	RestrictCommenting         bool      `json:"restrict_commenting"`
	Subscribers                float64   `json:"subscribers"`
	IsDefaultIcon              bool      `json:"is_default_icon"`
	LinkFlairPosition          string    `json:"link_flair_position"`
	DisplayNamePrefixed        string    `json:"display_name_prefixed"`
	KeyColor                   string    `json:"key_color"`
	Name                       string    `json:"name"`
	IsDefaultBanner            bool      `json:"is_default_banner"`
	Url                        string    `json:"url"`
	BannerSize                 []float64 `json:"banner_size"`
	UserIsModerator            bool      `json:"user_is_moderator"`
	PublicDescription          string    `json:"public_description"`
	LinkFlairEnabled           bool      `json:"link_flair_enabled"`
	SubredditType              string    `json:"subreddit_type"`
	UserIsSubscriber           bool      `json:"user_is_subscriber"`
}

type UserReport

type UserReport struct {
	Reason       string
	NumOfReports float64
	SnoozeStatus bool
	CanSnooze    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL