Record Class Link
java.lang.Object
java.lang.Record
io.github.yvasyliev.telegramforwarderbot.reddit.dto.Link
- Record Components:
approvedAtUtc
- the time when the post was approved in UTCsubreddit
- the subreddit where the post was madeselftext
- the text content of the post- the full name of the author
saved
- indicates if the post is saved by the usermodReasonTitle
- the title of the moderation reasongilded
- the number of times the post has been gildedclicked
- indicates if the post has been clickedtitle
- the title of the postlinkFlairRichtext
- the rich text formatting of the link flairsubredditNamePrefixed
- the subreddit name prefixed with "r/"- indicates if the post is hidden
pwls
- the post's whitelist statuslinkFlairCssClass
- the CSS class for the link flairdowns
- the number of downvotes the post has receivedthumbnailHeight
- the height of the thumbnail imagetopAwardedType
- the type of the top awarded posthideScore
- indicates if the score of the post is hiddenmediaMetadata
- the metadata for media associated with the postname
- the name of the postquarantine
- indicates if the post is quarantinedlinkFlairTextColor
- the text color of the link flairupvoteRatio
- the ratio of upvotes to total votes for the post- the background color of the author's flair
subredditType
- the type of subreddit (e.g., public, private)ups
- the number of upvotes the post has receivedtotalAwardsReceived
- the total number of awards received by the postmediaEmbed
- the media embed information for the postthumbnailWidth
- the width of the thumbnail image- the template ID for the author's flair
isOriginalContent
- indicates if the post is original contentuserReports
- the reports made by users against the postsecureMedia
- the secure media associated with the postisRedditMediaDomain
- indicates if the post is from a Reddit media domainisMeta
- indicates if the post is a meta postcategory
- the category of the postsecureMediaEmbed
- the secure media embed information for the postgalleryData
- the gallery data associated with the postlinkFlairText
- the text of the link flaircanModPost
- indicates if the user can moderate the postscore
- the score of the post (upvotes - downvotes)approvedBy
- the user who approved the post, if applicableisCreatedFromAdsUi
- indicates if the post was created from the ads UI- indicates if the author has a premium account
thumbnail
- the URL of the thumbnail image for the postedited
- indicates if the post has been edited- the CSS class for the author's flair
- the rich text formatting of the author's flair
gildings
- the gildings associated with the postpostHint
- the hint for the type of post (e.g., image, video)contentCategories
- the content categories associated with the postisSelf
- indicates if the post is a self-post (text only)modNote
- the moderation note for the post, if applicablecrosspostParentList
- the list of crosspost parents for the postcreated
- the creation time of the postlinkFlairType
- the type of link flair (e.g., text, richtext)wls
- the whitelist status of the postremovedByCategory
- the category of the user who removed the post, if applicablebannedBy
- the user who banned the post, if applicable- the type of author's flair (e.g., text, richtext)
domain
- the domain of the post (e.g., reddit.com, imgur.com)allowLiveComments
- indicates if live comments are allowed on the postselftextHtml
- the HTML content of the selftextlikes
- indicates if the user likes the postsuggestedSort
- the suggested sort order for the postbannedAtUtc
- the time when the post was banned in UTCurlOverriddenByDest
- the URL that overrides the destination URL of the postviewCount
- the number of views the post has receivedarchived
- indicates if the post is archivednoFollow
- indicates if the post should not be followed by search enginesisCrosspostable
- indicates if the post can be crosspostedpinned
- indicates if the post is pinned to the top of the subredditover18
- indicates if the post is marked as NSFW (not safe for work)preview
- the preview data for the post, including images and videoallAwardings
- the list of all awards received by the postawarders
- the list of users who awarded the postmediaOnly
- indicates if the post contains only media contentcanGild
- indicates if the post can be gildedspoiler
- indicates if the post contains a spoilerlocked
- indicates if the post is locked for comments- the text of the author's flair
treatmentTags
- the treatment tags associated with the postvisited
- indicates if the post has been visited by the userremovedBy
- the user who removed the post, if applicablenumReports
- the number of reports made against the postdistinguished
- the distinction status of the post (e.g., admin, moderator)subredditId
- the ID of the subreddit where the post was made- indicates if the author is blocked by the user
modReasonBy
- the user who provided the moderation reason, if applicableremovalReason
- the reason for the removal of the post, if applicablelinkFlairBackgroundColor
- the background color of the link flairid
- the unique identifier of the postisRobotIndexable
- indicates if the post is indexable by robotsreportReasons
- the reasons for reporting the post, if applicable- the username of the author of the post
discussionType
- the type of discussion for the post (e.g., chat, Q&A)numComments
- the number of comments on the postsendReplies
- indicates if replies to the post should be sentwhitelistStatus
- the whitelist status of the postcontestMode
- indicates if the post is in contest modemodReports
- the reports made by moderators against the post- indicates if the author has a Patreon flair
- the text color of the author's flair
permalink
- the permalink to the post, deserialized to a URLparentWhitelistStatus
- the whitelist status of the parent post, if applicablestickied
- indicates if the post is stickied (pinned) in the subredditurl
- the URL of the postsubredditSubscribers
- the number of subscribers to the subreddit where the post was madecreatedUtc
- the creation time of the post in UTCnumCrossposts
- the number of crossposts of the postmedia
- the media associated with the post, if anyisVideo
- indicates if the post is a video
- All Implemented Interfaces:
Comparable<Link>
public record Link(String approvedAtUtc, String subreddit, String selftext, String authorFullname, Boolean saved, String modReasonTitle, Integer gilded, Boolean clicked, String title, List<Link.FlairRichtext> linkFlairRichtext, String subredditNamePrefixed, Boolean hidden, Integer pwls, String linkFlairCssClass, Integer downs, Integer thumbnailHeight, String topAwardedType, Boolean hideScore, Map<String,Link.Metadata> mediaMetadata, String name, Boolean quarantine, String linkFlairTextColor, Double upvoteRatio, String authorFlairBackgroundColor, String subredditType, Integer ups, Integer totalAwardsReceived, Link.MediaEmbed mediaEmbed, Integer thumbnailWidth, String authorFlairTemplateId, Boolean isOriginalContent, com.fasterxml.jackson.databind.node.ArrayNode userReports, Link.Media secureMedia, Boolean isRedditMediaDomain, Boolean isMeta, String category, Link.MediaEmbed secureMediaEmbed, Link.GalleryData galleryData, String linkFlairText, Boolean canModPost, Integer score, String approvedBy, Boolean isCreatedFromAdsUi, Boolean authorPremium, String thumbnail, Instant edited, String authorFlairCssClass, List<Link.FlairRichtext> authorFlairRichtext, Map<String,Integer> gildings, Link.PostHint postHint, List<String> contentCategories, Boolean isSelf, String modNote, List<Link> crosspostParentList, Instant created, String linkFlairType, Integer wls, String removedByCategory, String bannedBy, String authorFlairType, String domain, Boolean allowLiveComments, String selftextHtml, Boolean likes, String suggestedSort, Instant bannedAtUtc, URL urlOverriddenByDest, Integer viewCount, Boolean archived, Boolean noFollow, Boolean isCrosspostable, Boolean pinned, Boolean over18, Link.Preview preview, List<Link.Awarding> allAwardings, com.fasterxml.jackson.databind.node.ArrayNode awarders, Boolean mediaOnly, Boolean canGild, Boolean spoiler, Boolean locked, String authorFlairText, com.fasterxml.jackson.databind.node.ArrayNode treatmentTags, Boolean visited, String removedBy, Integer numReports, String distinguished, String subredditId, Boolean authorIsBlocked, String modReasonBy, String removalReason, String linkFlairBackgroundColor, String id, Boolean isRobotIndexable, List<String> reportReasons, String author, String discussionType, Integer numComments, Boolean sendReplies, String whitelistStatus, Boolean contestMode, com.fasterxml.jackson.databind.node.ArrayNode modReports, Boolean authorPatreonFlair, String authorFlairTextColor, URL permalink, String parentWhitelistStatus, Boolean stickied, URL url, Integer subredditSubscribers, Instant createdUtc, Integer numCrossposts, Link.Media media, Boolean isVideo)
extends Record
implements Comparable<Link>
Represents a Reddit link (post) with various attributes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents an awarding given to a Reddit post.static final record
Represents rich text formatting for flairs in Reddit posts.static final record
Represents the gallery data associated with a Reddit post.static final record
Represents the media associated with a Reddit post.static final record
Represents the media embed information for a Reddit post.static final record
Represents metadata for a Reddit post, including its status, type, format, resolutions, source resolution, and ID.static final record
Represents the data for a Reddit poll.static enum
Represents the hint for the type of post.static final record
Represents the preview data for a Reddit post.static final record
Represents a Reddit video with various attributes.static final record
Represents a resolution of an image or video.static final record
Represents a variant of a post's media with its source resolution and available resolutions.static final record
Represents the variants of a post's media.static enum
Represents the type of variant for a post's media. -
Constructor Summary
ConstructorsConstructorDescriptionLink
(String approvedAtUtc, String subreddit, String selftext, String authorFullname, Boolean saved, String modReasonTitle, Integer gilded, Boolean clicked, String title, List<Link.FlairRichtext> linkFlairRichtext, String subredditNamePrefixed, Boolean hidden, Integer pwls, String linkFlairCssClass, Integer downs, Integer thumbnailHeight, String topAwardedType, Boolean hideScore, Map<String, Link.Metadata> mediaMetadata, String name, Boolean quarantine, String linkFlairTextColor, Double upvoteRatio, String authorFlairBackgroundColor, String subredditType, Integer ups, Integer totalAwardsReceived, Link.MediaEmbed mediaEmbed, Integer thumbnailWidth, String authorFlairTemplateId, Boolean isOriginalContent, com.fasterxml.jackson.databind.node.ArrayNode userReports, Link.Media secureMedia, Boolean isRedditMediaDomain, Boolean isMeta, String category, Link.MediaEmbed secureMediaEmbed, Link.GalleryData galleryData, String linkFlairText, Boolean canModPost, Integer score, String approvedBy, Boolean isCreatedFromAdsUi, Boolean authorPremium, String thumbnail, Instant edited, String authorFlairCssClass, List<Link.FlairRichtext> authorFlairRichtext, Map<String, Integer> gildings, Link.PostHint postHint, List<String> contentCategories, Boolean isSelf, String modNote, List<Link> crosspostParentList, Instant created, String linkFlairType, Integer wls, String removedByCategory, String bannedBy, String authorFlairType, String domain, Boolean allowLiveComments, String selftextHtml, Boolean likes, String suggestedSort, Instant bannedAtUtc, URL urlOverriddenByDest, Integer viewCount, Boolean archived, Boolean noFollow, Boolean isCrosspostable, Boolean pinned, Boolean over18, Link.Preview preview, List<Link.Awarding> allAwardings, com.fasterxml.jackson.databind.node.ArrayNode awarders, Boolean mediaOnly, Boolean canGild, Boolean spoiler, Boolean locked, String authorFlairText, com.fasterxml.jackson.databind.node.ArrayNode treatmentTags, Boolean visited, String removedBy, Integer numReports, String distinguished, String subredditId, Boolean authorIsBlocked, String modReasonBy, String removalReason, String linkFlairBackgroundColor, String id, Boolean isRobotIndexable, List<String> reportReasons, String author, String discussionType, Integer numComments, Boolean sendReplies, String whitelistStatus, Boolean contestMode, com.fasterxml.jackson.databind.node.ArrayNode modReports, Boolean authorPatreonFlair, String authorFlairTextColor, URL permalink, String parentWhitelistStatus, Boolean stickied, URL url, Integer subredditSubscribers, Instant createdUtc, Integer numCrossposts, Link.Media media, Boolean isVideo) Creates an instance of aLink
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallAwardings
record component.Returns the value of theallowLiveComments
record component.Returns the value of theapprovedAtUtc
record component.Returns the value of theapprovedBy
record component.archived()
Returns the value of thearchived
record component.author()
Returns the value of theauthor
record component.Returns the value of theauthorFlairBackgroundColor
record component.Returns the value of theauthorFlairCssClass
record component.Returns the value of theauthorFlairRichtext
record component.Returns the value of theauthorFlairTemplateId
record component.Returns the value of theauthorFlairText
record component.Returns the value of theauthorFlairTextColor
record component.Returns the value of theauthorFlairType
record component.Returns the value of theauthorFullname
record component.Returns the value of theauthorIsBlocked
record component.Returns the value of theauthorPatreonFlair
record component.Returns the value of theauthorPremium
record component.com.fasterxml.jackson.databind.node.ArrayNode
awarders()
Returns the value of theawarders
record component.Returns the value of thebannedAtUtc
record component.bannedBy()
Returns the value of thebannedBy
record component.canGild()
Returns the value of thecanGild
record component.Returns the value of thecanModPost
record component.category()
Returns the value of thecategory
record component.clicked()
Returns the value of theclicked
record component.int
Returns the value of thecontentCategories
record component.Returns the value of thecontestMode
record component.created()
Returns the value of thecreated
record component.Returns the value of thecreatedUtc
record component.Returns the value of thecrosspostParentList
record component.Returns the value of thediscussionType
record component.Returns the value of thedistinguished
record component.domain()
Returns the value of thedomain
record component.downs()
Returns the value of thedowns
record component.edited()
Returns the value of theedited
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegalleryData
record component.gilded()
Returns the value of thegilded
record component.gildings()
Returns the value of thegildings
record component.boolean
Checks if the post has a gallery associated with it.final int
hashCode()
Returns a hash code value for this object.boolean
Checks if the post has a post hint.hidden()
Returns the value of thehidden
record component.Returns the value of thehideScore
record component.id()
Returns the value of theid
record component.Returns the value of theisCreatedFromAdsUi
record component.Returns the value of theisCrosspostable
record component.isMeta()
Returns the value of theisMeta
record component.boolean
isNsfw()
Checks if the post is marked as NSFW (not safe for work).Returns the value of theisOriginalContent
record component.Returns the value of theisRedditMediaDomain
record component.Returns the value of theisRobotIndexable
record component.isSelf()
Returns the value of theisSelf
record component.isVideo()
Returns the value of theisVideo
record component.likes()
Returns the value of thelikes
record component.Returns the value of thelinkFlairBackgroundColor
record component.Returns the value of thelinkFlairCssClass
record component.Returns the value of thelinkFlairRichtext
record component.Returns the value of thelinkFlairText
record component.Returns the value of thelinkFlairTextColor
record component.Returns the value of thelinkFlairType
record component.locked()
Returns the value of thelocked
record component.media()
Returns the value of themedia
record component.Returns the value of themediaEmbed
record component.Returns the value of themediaMetadata
record component.Returns the value of themediaOnly
record component.modNote()
Returns the value of themodNote
record component.Returns the value of themodReasonBy
record component.Returns the value of themodReasonTitle
record component.com.fasterxml.jackson.databind.node.ArrayNode
Returns the value of themodReports
record component.name()
Returns the value of thename
record component.noFollow()
Returns the value of thenoFollow
record component.Returns the value of thenumComments
record component.Returns the value of thenumCrossposts
record component.Returns the value of thenumReports
record component.over18()
Returns the value of theover18
record component.Returns the value of theparentWhitelistStatus
record component.Returns the value of thepermalink
record component.pinned()
Returns the value of thepinned
record component.postHint()
Returns the value of thepostHint
record component.preview()
Returns the value of thepreview
record component.pwls()
Returns the value of thepwls
record component.Returns the value of thequarantine
record component.Returns the value of theremovalReason
record component.Returns the value of theremovedBy
record component.Returns the value of theremovedByCategory
record component.Returns the value of thereportReasons
record component.saved()
Returns the value of thesaved
record component.score()
Returns the value of thescore
record component.Returns the value of thesecureMedia
record component.Returns the value of thesecureMediaEmbed
record component.selftext()
Returns the value of theselftext
record component.Returns the value of theselftextHtml
record component.Returns the value of thesendReplies
record component.spoiler()
Returns the value of thespoiler
record component.stickied()
Returns the value of thestickied
record component.Returns the value of thesubreddit
record component.Returns the value of thesubredditId
record component.Returns the value of thesubredditNamePrefixed
record component.Returns the value of thesubredditSubscribers
record component.Returns the value of thesubredditType
record component.Returns the value of thesuggestedSort
record component.Returns the value of thethumbnail
record component.Returns the value of thethumbnailHeight
record component.Returns the value of thethumbnailWidth
record component.title()
Returns the value of thetitle
record component.Returns the value of thetopAwardedType
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetotalAwardsReceived
record component.com.fasterxml.jackson.databind.node.ArrayNode
Returns the value of thetreatmentTags
record component.ups()
Returns the value of theups
record component.Returns the value of theupvoteRatio
record component.url()
Returns the value of theurl
record component.Returns the value of theurlOverriddenByDest
record component.com.fasterxml.jackson.databind.node.ArrayNode
Returns the value of theuserReports
record component.Returns the value of theviewCount
record component.visited()
Returns the value of thevisited
record component.Returns the value of thewhitelistStatus
record component.wls()
Returns the value of thewls
record component.
-
Constructor Details
-
Link
public Link(String approvedAtUtc, String subreddit, String selftext, String authorFullname, Boolean saved, String modReasonTitle, Integer gilded, Boolean clicked, String title, List<Link.FlairRichtext> linkFlairRichtext, String subredditNamePrefixed, Boolean hidden, Integer pwls, String linkFlairCssClass, Integer downs, Integer thumbnailHeight, String topAwardedType, Boolean hideScore, Map<String, Link.Metadata> mediaMetadata, String name, Boolean quarantine, String linkFlairTextColor, Double upvoteRatio, String authorFlairBackgroundColor, String subredditType, Integer ups, Integer totalAwardsReceived, Link.MediaEmbed mediaEmbed, Integer thumbnailWidth, String authorFlairTemplateId, Boolean isOriginalContent, com.fasterxml.jackson.databind.node.ArrayNode userReports, Link.Media secureMedia, Boolean isRedditMediaDomain, Boolean isMeta, String category, Link.MediaEmbed secureMediaEmbed, Link.GalleryData galleryData, String linkFlairText, Boolean canModPost, Integer score, String approvedBy, Boolean isCreatedFromAdsUi, Boolean authorPremium, String thumbnail, Instant edited, String authorFlairCssClass, List<Link.FlairRichtext> authorFlairRichtext, Map<String, Integer> gildings, Link.PostHint postHint, List<String> contentCategories, Boolean isSelf, String modNote, List<Link> crosspostParentList, Instant created, String linkFlairType, Integer wls, String removedByCategory, String bannedBy, String authorFlairType, String domain, Boolean allowLiveComments, String selftextHtml, Boolean likes, String suggestedSort, Instant bannedAtUtc, URL urlOverriddenByDest, Integer viewCount, Boolean archived, Boolean noFollow, Boolean isCrosspostable, Boolean pinned, Boolean over18, Link.Preview preview, List<Link.Awarding> allAwardings, com.fasterxml.jackson.databind.node.ArrayNode awarders, Boolean mediaOnly, Boolean canGild, Boolean spoiler, Boolean locked, String authorFlairText, com.fasterxml.jackson.databind.node.ArrayNode treatmentTags, Boolean visited, String removedBy, Integer numReports, String distinguished, String subredditId, Boolean authorIsBlocked, String modReasonBy, String removalReason, String linkFlairBackgroundColor, String id, Boolean isRobotIndexable, List<String> reportReasons, String author, String discussionType, Integer numComments, Boolean sendReplies, String whitelistStatus, Boolean contestMode, com.fasterxml.jackson.databind.node.ArrayNode modReports, Boolean authorPatreonFlair, String authorFlairTextColor, URL permalink, String parentWhitelistStatus, Boolean stickied, URL url, Integer subredditSubscribers, Instant createdUtc, Integer numCrossposts, Link.Media media, Boolean isVideo) Creates an instance of aLink
record class.- Parameters:
approvedAtUtc
- the value for theapprovedAtUtc
record componentsubreddit
- the value for thesubreddit
record componentselftext
- the value for theselftext
record componentauthorFullname
- the value for theauthorFullname
record componentsaved
- the value for thesaved
record componentmodReasonTitle
- the value for themodReasonTitle
record componentgilded
- the value for thegilded
record componentclicked
- the value for theclicked
record componenttitle
- the value for thetitle
record componentlinkFlairRichtext
- the value for thelinkFlairRichtext
record componentsubredditNamePrefixed
- the value for thesubredditNamePrefixed
record componenthidden
- the value for thehidden
record componentpwls
- the value for thepwls
record componentlinkFlairCssClass
- the value for thelinkFlairCssClass
record componentdowns
- the value for thedowns
record componentthumbnailHeight
- the value for thethumbnailHeight
record componenttopAwardedType
- the value for thetopAwardedType
record componenthideScore
- the value for thehideScore
record componentmediaMetadata
- the value for themediaMetadata
record componentname
- the value for thename
record componentquarantine
- the value for thequarantine
record componentlinkFlairTextColor
- the value for thelinkFlairTextColor
record componentupvoteRatio
- the value for theupvoteRatio
record componentauthorFlairBackgroundColor
- the value for theauthorFlairBackgroundColor
record componentsubredditType
- the value for thesubredditType
record componentups
- the value for theups
record componenttotalAwardsReceived
- the value for thetotalAwardsReceived
record componentmediaEmbed
- the value for themediaEmbed
record componentthumbnailWidth
- the value for thethumbnailWidth
record componentauthorFlairTemplateId
- the value for theauthorFlairTemplateId
record componentisOriginalContent
- the value for theisOriginalContent
record componentuserReports
- the value for theuserReports
record componentsecureMedia
- the value for thesecureMedia
record componentisRedditMediaDomain
- the value for theisRedditMediaDomain
record componentisMeta
- the value for theisMeta
record componentcategory
- the value for thecategory
record componentsecureMediaEmbed
- the value for thesecureMediaEmbed
record componentgalleryData
- the value for thegalleryData
record componentlinkFlairText
- the value for thelinkFlairText
record componentcanModPost
- the value for thecanModPost
record componentscore
- the value for thescore
record componentapprovedBy
- the value for theapprovedBy
record componentisCreatedFromAdsUi
- the value for theisCreatedFromAdsUi
record componentauthorPremium
- the value for theauthorPremium
record componentthumbnail
- the value for thethumbnail
record componentedited
- the value for theedited
record componentauthorFlairCssClass
- the value for theauthorFlairCssClass
record componentauthorFlairRichtext
- the value for theauthorFlairRichtext
record componentgildings
- the value for thegildings
record componentpostHint
- the value for thepostHint
record componentcontentCategories
- the value for thecontentCategories
record componentisSelf
- the value for theisSelf
record componentmodNote
- the value for themodNote
record componentcrosspostParentList
- the value for thecrosspostParentList
record componentcreated
- the value for thecreated
record componentlinkFlairType
- the value for thelinkFlairType
record componentwls
- the value for thewls
record componentremovedByCategory
- the value for theremovedByCategory
record componentbannedBy
- the value for thebannedBy
record componentauthorFlairType
- the value for theauthorFlairType
record componentdomain
- the value for thedomain
record componentallowLiveComments
- the value for theallowLiveComments
record componentselftextHtml
- the value for theselftextHtml
record componentlikes
- the value for thelikes
record componentsuggestedSort
- the value for thesuggestedSort
record componentbannedAtUtc
- the value for thebannedAtUtc
record componenturlOverriddenByDest
- the value for theurlOverriddenByDest
record componentviewCount
- the value for theviewCount
record componentarchived
- the value for thearchived
record componentnoFollow
- the value for thenoFollow
record componentisCrosspostable
- the value for theisCrosspostable
record componentpinned
- the value for thepinned
record componentover18
- the value for theover18
record componentpreview
- the value for thepreview
record componentallAwardings
- the value for theallAwardings
record componentawarders
- the value for theawarders
record componentmediaOnly
- the value for themediaOnly
record componentcanGild
- the value for thecanGild
record componentspoiler
- the value for thespoiler
record componentlocked
- the value for thelocked
record componentauthorFlairText
- the value for theauthorFlairText
record componenttreatmentTags
- the value for thetreatmentTags
record componentvisited
- the value for thevisited
record componentremovedBy
- the value for theremovedBy
record componentnumReports
- the value for thenumReports
record componentdistinguished
- the value for thedistinguished
record componentsubredditId
- the value for thesubredditId
record componentauthorIsBlocked
- the value for theauthorIsBlocked
record componentmodReasonBy
- the value for themodReasonBy
record componentremovalReason
- the value for theremovalReason
record componentlinkFlairBackgroundColor
- the value for thelinkFlairBackgroundColor
record componentid
- the value for theid
record componentisRobotIndexable
- the value for theisRobotIndexable
record componentreportReasons
- the value for thereportReasons
record componentauthor
- the value for theauthor
record componentdiscussionType
- the value for thediscussionType
record componentnumComments
- the value for thenumComments
record componentsendReplies
- the value for thesendReplies
record componentwhitelistStatus
- the value for thewhitelistStatus
record componentcontestMode
- the value for thecontestMode
record componentmodReports
- the value for themodReports
record componentauthorPatreonFlair
- the value for theauthorPatreonFlair
record componentauthorFlairTextColor
- the value for theauthorFlairTextColor
record componentpermalink
- the value for thepermalink
record componentparentWhitelistStatus
- the value for theparentWhitelistStatus
record componentstickied
- the value for thestickied
record componenturl
- the value for theurl
record componentsubredditSubscribers
- the value for thesubredditSubscribers
record componentcreatedUtc
- the value for thecreatedUtc
record componentnumCrossposts
- the value for thenumCrossposts
record componentmedia
- the value for themedia
record componentisVideo
- the value for theisVideo
record component
-
-
Method Details
-
isNsfw
public boolean isNsfw()Checks if the post is marked as NSFW (not safe for work).- Returns:
true
if the post is NSFW,false
otherwise.
-
hasGalleryData
public boolean hasGalleryData()Checks if the post has a gallery associated with it.- Returns:
true
if the post has gallery data,false
otherwise.
-
hasPostHint
public boolean hasPostHint()Checks if the post has a post hint. This can be used to determine the type of content in the post (e.g., image, video).- Returns:
true
if the post has a post hint,false
otherwise.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Link>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
approvedAtUtc
Returns the value of theapprovedAtUtc
record component.- Returns:
- the value of the
approvedAtUtc
record component
-
subreddit
Returns the value of thesubreddit
record component.- Returns:
- the value of the
subreddit
record component
-
selftext
Returns the value of theselftext
record component.- Returns:
- the value of the
selftext
record component
-
authorFullname
Returns the value of theauthorFullname
record component.- Returns:
- the value of the
authorFullname
record component
-
saved
Returns the value of thesaved
record component.- Returns:
- the value of the
saved
record component
-
modReasonTitle
Returns the value of themodReasonTitle
record component.- Returns:
- the value of the
modReasonTitle
record component
-
gilded
Returns the value of thegilded
record component.- Returns:
- the value of the
gilded
record component
-
clicked
Returns the value of theclicked
record component.- Returns:
- the value of the
clicked
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
linkFlairRichtext
Returns the value of thelinkFlairRichtext
record component.- Returns:
- the value of the
linkFlairRichtext
record component
-
subredditNamePrefixed
Returns the value of thesubredditNamePrefixed
record component.- Returns:
- the value of the
subredditNamePrefixed
record component
-
pwls
Returns the value of thepwls
record component.- Returns:
- the value of the
pwls
record component
-
linkFlairCssClass
Returns the value of thelinkFlairCssClass
record component.- Returns:
- the value of the
linkFlairCssClass
record component
-
downs
Returns the value of thedowns
record component.- Returns:
- the value of the
downs
record component
-
thumbnailHeight
Returns the value of thethumbnailHeight
record component.- Returns:
- the value of the
thumbnailHeight
record component
-
topAwardedType
Returns the value of thetopAwardedType
record component.- Returns:
- the value of the
topAwardedType
record component
-
hideScore
Returns the value of thehideScore
record component.- Returns:
- the value of the
hideScore
record component
-
mediaMetadata
Returns the value of themediaMetadata
record component.- Returns:
- the value of the
mediaMetadata
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
quarantine
Returns the value of thequarantine
record component.- Returns:
- the value of the
quarantine
record component
-
linkFlairTextColor
Returns the value of thelinkFlairTextColor
record component.- Returns:
- the value of the
linkFlairTextColor
record component
-
upvoteRatio
Returns the value of theupvoteRatio
record component.- Returns:
- the value of the
upvoteRatio
record component
-
authorFlairBackgroundColor
Returns the value of theauthorFlairBackgroundColor
record component.- Returns:
- the value of the
authorFlairBackgroundColor
record component
-
subredditType
Returns the value of thesubredditType
record component.- Returns:
- the value of the
subredditType
record component
-
ups
Returns the value of theups
record component.- Returns:
- the value of the
ups
record component
-
totalAwardsReceived
Returns the value of thetotalAwardsReceived
record component.- Returns:
- the value of the
totalAwardsReceived
record component
-
mediaEmbed
Returns the value of themediaEmbed
record component.- Returns:
- the value of the
mediaEmbed
record component
-
thumbnailWidth
Returns the value of thethumbnailWidth
record component.- Returns:
- the value of the
thumbnailWidth
record component
-
authorFlairTemplateId
Returns the value of theauthorFlairTemplateId
record component.- Returns:
- the value of the
authorFlairTemplateId
record component
-
isOriginalContent
Returns the value of theisOriginalContent
record component.- Returns:
- the value of the
isOriginalContent
record component
-
userReports
public com.fasterxml.jackson.databind.node.ArrayNode userReports()Returns the value of theuserReports
record component.- Returns:
- the value of the
userReports
record component
-
secureMedia
Returns the value of thesecureMedia
record component.- Returns:
- the value of the
secureMedia
record component
-
isRedditMediaDomain
Returns the value of theisRedditMediaDomain
record component.- Returns:
- the value of the
isRedditMediaDomain
record component
-
isMeta
Returns the value of theisMeta
record component.- Returns:
- the value of the
isMeta
record component
-
category
Returns the value of thecategory
record component.- Returns:
- the value of the
category
record component
-
secureMediaEmbed
Returns the value of thesecureMediaEmbed
record component.- Returns:
- the value of the
secureMediaEmbed
record component
-
galleryData
Returns the value of thegalleryData
record component.- Returns:
- the value of the
galleryData
record component
-
linkFlairText
Returns the value of thelinkFlairText
record component.- Returns:
- the value of the
linkFlairText
record component
-
canModPost
Returns the value of thecanModPost
record component.- Returns:
- the value of the
canModPost
record component
-
score
Returns the value of thescore
record component.- Returns:
- the value of the
score
record component
-
approvedBy
Returns the value of theapprovedBy
record component.- Returns:
- the value of the
approvedBy
record component
-
isCreatedFromAdsUi
Returns the value of theisCreatedFromAdsUi
record component.- Returns:
- the value of the
isCreatedFromAdsUi
record component
-
authorPremium
Returns the value of theauthorPremium
record component.- Returns:
- the value of the
authorPremium
record component
-
thumbnail
Returns the value of thethumbnail
record component.- Returns:
- the value of the
thumbnail
record component
-
edited
Returns the value of theedited
record component.- Returns:
- the value of the
edited
record component
-
authorFlairCssClass
Returns the value of theauthorFlairCssClass
record component.- Returns:
- the value of the
authorFlairCssClass
record component
-
authorFlairRichtext
Returns the value of theauthorFlairRichtext
record component.- Returns:
- the value of the
authorFlairRichtext
record component
-
gildings
Returns the value of thegildings
record component.- Returns:
- the value of the
gildings
record component
-
postHint
Returns the value of thepostHint
record component.- Returns:
- the value of the
postHint
record component
-
contentCategories
Returns the value of thecontentCategories
record component.- Returns:
- the value of the
contentCategories
record component
-
isSelf
Returns the value of theisSelf
record component.- Returns:
- the value of the
isSelf
record component
-
modNote
Returns the value of themodNote
record component.- Returns:
- the value of the
modNote
record component
-
crosspostParentList
Returns the value of thecrosspostParentList
record component.- Returns:
- the value of the
crosspostParentList
record component
-
created
Returns the value of thecreated
record component.- Returns:
- the value of the
created
record component
-
linkFlairType
Returns the value of thelinkFlairType
record component.- Returns:
- the value of the
linkFlairType
record component
-
wls
Returns the value of thewls
record component.- Returns:
- the value of the
wls
record component
-
removedByCategory
Returns the value of theremovedByCategory
record component.- Returns:
- the value of the
removedByCategory
record component
-
bannedBy
Returns the value of thebannedBy
record component.- Returns:
- the value of the
bannedBy
record component
-
authorFlairType
Returns the value of theauthorFlairType
record component.- Returns:
- the value of the
authorFlairType
record component
-
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
allowLiveComments
Returns the value of theallowLiveComments
record component.- Returns:
- the value of the
allowLiveComments
record component
-
selftextHtml
Returns the value of theselftextHtml
record component.- Returns:
- the value of the
selftextHtml
record component
-
likes
Returns the value of thelikes
record component.- Returns:
- the value of the
likes
record component
-
suggestedSort
Returns the value of thesuggestedSort
record component.- Returns:
- the value of the
suggestedSort
record component
-
bannedAtUtc
Returns the value of thebannedAtUtc
record component.- Returns:
- the value of the
bannedAtUtc
record component
-
urlOverriddenByDest
Returns the value of theurlOverriddenByDest
record component.- Returns:
- the value of the
urlOverriddenByDest
record component
-
viewCount
Returns the value of theviewCount
record component.- Returns:
- the value of the
viewCount
record component
-
archived
Returns the value of thearchived
record component.- Returns:
- the value of the
archived
record component
-
noFollow
Returns the value of thenoFollow
record component.- Returns:
- the value of the
noFollow
record component
-
isCrosspostable
Returns the value of theisCrosspostable
record component.- Returns:
- the value of the
isCrosspostable
record component
-
pinned
Returns the value of thepinned
record component.- Returns:
- the value of the
pinned
record component
-
over18
Returns the value of theover18
record component.- Returns:
- the value of the
over18
record component
-
preview
Returns the value of thepreview
record component.- Returns:
- the value of the
preview
record component
-
allAwardings
Returns the value of theallAwardings
record component.- Returns:
- the value of the
allAwardings
record component
-
awarders
public com.fasterxml.jackson.databind.node.ArrayNode awarders()Returns the value of theawarders
record component.- Returns:
- the value of the
awarders
record component
-
mediaOnly
Returns the value of themediaOnly
record component.- Returns:
- the value of the
mediaOnly
record component
-
canGild
Returns the value of thecanGild
record component.- Returns:
- the value of the
canGild
record component
-
spoiler
Returns the value of thespoiler
record component.- Returns:
- the value of the
spoiler
record component
-
locked
Returns the value of thelocked
record component.- Returns:
- the value of the
locked
record component
-
authorFlairText
Returns the value of theauthorFlairText
record component.- Returns:
- the value of the
authorFlairText
record component
-
treatmentTags
public com.fasterxml.jackson.databind.node.ArrayNode treatmentTags()Returns the value of thetreatmentTags
record component.- Returns:
- the value of the
treatmentTags
record component
-
visited
Returns the value of thevisited
record component.- Returns:
- the value of the
visited
record component
-
removedBy
Returns the value of theremovedBy
record component.- Returns:
- the value of the
removedBy
record component
-
numReports
Returns the value of thenumReports
record component.- Returns:
- the value of the
numReports
record component
-
distinguished
Returns the value of thedistinguished
record component.- Returns:
- the value of the
distinguished
record component
-
subredditId
Returns the value of thesubredditId
record component.- Returns:
- the value of the
subredditId
record component
-
authorIsBlocked
Returns the value of theauthorIsBlocked
record component.- Returns:
- the value of the
authorIsBlocked
record component
-
modReasonBy
Returns the value of themodReasonBy
record component.- Returns:
- the value of the
modReasonBy
record component
-
removalReason
Returns the value of theremovalReason
record component.- Returns:
- the value of the
removalReason
record component
-
linkFlairBackgroundColor
Returns the value of thelinkFlairBackgroundColor
record component.- Returns:
- the value of the
linkFlairBackgroundColor
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
isRobotIndexable
Returns the value of theisRobotIndexable
record component.- Returns:
- the value of the
isRobotIndexable
record component
-
reportReasons
Returns the value of thereportReasons
record component.- Returns:
- the value of the
reportReasons
record component
-
author
Returns the value of theauthor
record component.- Returns:
- the value of the
author
record component
-
discussionType
Returns the value of thediscussionType
record component.- Returns:
- the value of the
discussionType
record component
-
numComments
Returns the value of thenumComments
record component.- Returns:
- the value of the
numComments
record component
-
sendReplies
Returns the value of thesendReplies
record component.- Returns:
- the value of the
sendReplies
record component
-
whitelistStatus
Returns the value of thewhitelistStatus
record component.- Returns:
- the value of the
whitelistStatus
record component
-
contestMode
Returns the value of thecontestMode
record component.- Returns:
- the value of the
contestMode
record component
-
modReports
public com.fasterxml.jackson.databind.node.ArrayNode modReports()Returns the value of themodReports
record component.- Returns:
- the value of the
modReports
record component
-
authorPatreonFlair
Returns the value of theauthorPatreonFlair
record component.- Returns:
- the value of the
authorPatreonFlair
record component
-
authorFlairTextColor
Returns the value of theauthorFlairTextColor
record component.- Returns:
- the value of the
authorFlairTextColor
record component
-
permalink
Returns the value of thepermalink
record component.- Returns:
- the value of the
permalink
record component
-
parentWhitelistStatus
Returns the value of theparentWhitelistStatus
record component.- Returns:
- the value of the
parentWhitelistStatus
record component
-
stickied
Returns the value of thestickied
record component.- Returns:
- the value of the
stickied
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
subredditSubscribers
Returns the value of thesubredditSubscribers
record component.- Returns:
- the value of the
subredditSubscribers
record component
-
createdUtc
Returns the value of thecreatedUtc
record component.- Returns:
- the value of the
createdUtc
record component
-
numCrossposts
Returns the value of thenumCrossposts
record component.- Returns:
- the value of the
numCrossposts
record component
-
media
Returns the value of themedia
record component.- Returns:
- the value of the
media
record component
-
isVideo
Returns the value of theisVideo
record component.- Returns:
- the value of the
isVideo
record component
-