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 authorsaved- 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 hiddenpwls- 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 flairsubredditType- 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 flairisOriginalContent- 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 accountthumbnail- 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 flairgildings- 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 flairtreatmentTags- 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 usermodReasonBy- 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 postdiscussionType- 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 flairpermalink- 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 recordRepresents an awarding given to a Reddit post.static final recordRepresents rich text formatting for flairs in Reddit posts.static final recordRepresents the gallery data associated with a Reddit post.static final recordRepresents the media associated with a Reddit post.static final recordRepresents the media embed information for a Reddit post.static final recordRepresents metadata for a Reddit post, including its status, type, format, resolutions, source resolution, and ID.static final recordRepresents the data for a Reddit poll.static enumRepresents the hint for the type of post.static final recordRepresents the preview data for a Reddit post.static final recordRepresents a Reddit video with various attributes.static final recordRepresents a resolution of an image or video.static final recordRepresents a variant of a post's media with its source resolution and available resolutions.static final recordRepresents the variants of a post's media.static enumRepresents 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 aLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallAwardingsrecord component.Returns the value of theallowLiveCommentsrecord component.Returns the value of theapprovedAtUtcrecord component.Returns the value of theapprovedByrecord component.archived()Returns the value of thearchivedrecord component.author()Returns the value of theauthorrecord component.Returns the value of theauthorFlairBackgroundColorrecord component.Returns the value of theauthorFlairCssClassrecord component.Returns the value of theauthorFlairRichtextrecord component.Returns the value of theauthorFlairTemplateIdrecord component.Returns the value of theauthorFlairTextrecord component.Returns the value of theauthorFlairTextColorrecord component.Returns the value of theauthorFlairTyperecord component.Returns the value of theauthorFullnamerecord component.Returns the value of theauthorIsBlockedrecord component.Returns the value of theauthorPatreonFlairrecord component.Returns the value of theauthorPremiumrecord component.com.fasterxml.jackson.databind.node.ArrayNodeawarders()Returns the value of theawardersrecord component.Returns the value of thebannedAtUtcrecord component.bannedBy()Returns the value of thebannedByrecord component.canGild()Returns the value of thecanGildrecord component.Returns the value of thecanModPostrecord component.category()Returns the value of thecategoryrecord component.clicked()Returns the value of theclickedrecord component.intReturns the value of thecontentCategoriesrecord component.Returns the value of thecontestModerecord component.created()Returns the value of thecreatedrecord component.Returns the value of thecreatedUtcrecord component.Returns the value of thecrosspostParentListrecord component.Returns the value of thediscussionTyperecord component.Returns the value of thedistinguishedrecord component.domain()Returns the value of thedomainrecord component.downs()Returns the value of thedownsrecord component.edited()Returns the value of theeditedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegalleryDatarecord component.gilded()Returns the value of thegildedrecord component.gildings()Returns the value of thegildingsrecord component.booleanChecks if the post has a gallery associated with it.final inthashCode()Returns a hash code value for this object.booleanChecks if the post has a post hint.hidden()Returns the value of thehiddenrecord component.Returns the value of thehideScorerecord component.id()Returns the value of theidrecord component.Returns the value of theisCreatedFromAdsUirecord component.Returns the value of theisCrosspostablerecord component.isMeta()Returns the value of theisMetarecord component.booleanisNsfw()Checks if the post is marked as NSFW (not safe for work).Returns the value of theisOriginalContentrecord component.Returns the value of theisRedditMediaDomainrecord component.Returns the value of theisRobotIndexablerecord component.isSelf()Returns the value of theisSelfrecord component.isVideo()Returns the value of theisVideorecord component.likes()Returns the value of thelikesrecord component.Returns the value of thelinkFlairBackgroundColorrecord component.Returns the value of thelinkFlairCssClassrecord component.Returns the value of thelinkFlairRichtextrecord component.Returns the value of thelinkFlairTextrecord component.Returns the value of thelinkFlairTextColorrecord component.Returns the value of thelinkFlairTyperecord component.locked()Returns the value of thelockedrecord component.media()Returns the value of themediarecord component.Returns the value of themediaEmbedrecord component.Returns the value of themediaMetadatarecord component.Returns the value of themediaOnlyrecord component.modNote()Returns the value of themodNoterecord component.Returns the value of themodReasonByrecord component.Returns the value of themodReasonTitlerecord component.com.fasterxml.jackson.databind.node.ArrayNodeReturns the value of themodReportsrecord component.name()Returns the value of thenamerecord component.noFollow()Returns the value of thenoFollowrecord component.Returns the value of thenumCommentsrecord component.Returns the value of thenumCrosspostsrecord component.Returns the value of thenumReportsrecord component.over18()Returns the value of theover18record component.Returns the value of theparentWhitelistStatusrecord component.Returns the value of thepermalinkrecord component.pinned()Returns the value of thepinnedrecord component.postHint()Returns the value of thepostHintrecord component.preview()Returns the value of thepreviewrecord component.pwls()Returns the value of thepwlsrecord component.Returns the value of thequarantinerecord component.Returns the value of theremovalReasonrecord component.Returns the value of theremovedByrecord component.Returns the value of theremovedByCategoryrecord component.Returns the value of thereportReasonsrecord component.saved()Returns the value of thesavedrecord component.score()Returns the value of thescorerecord component.Returns the value of thesecureMediarecord component.Returns the value of thesecureMediaEmbedrecord component.selftext()Returns the value of theselftextrecord component.Returns the value of theselftextHtmlrecord component.Returns the value of thesendRepliesrecord component.spoiler()Returns the value of thespoilerrecord component.stickied()Returns the value of thestickiedrecord component.Returns the value of thesubredditrecord component.Returns the value of thesubredditIdrecord component.Returns the value of thesubredditNamePrefixedrecord component.Returns the value of thesubredditSubscribersrecord component.Returns the value of thesubredditTyperecord component.Returns the value of thesuggestedSortrecord component.Returns the value of thethumbnailrecord component.Returns the value of thethumbnailHeightrecord component.Returns the value of thethumbnailWidthrecord component.title()Returns the value of thetitlerecord component.Returns the value of thetopAwardedTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalAwardsReceivedrecord component.com.fasterxml.jackson.databind.node.ArrayNodeReturns the value of thetreatmentTagsrecord component.ups()Returns the value of theupsrecord component.Returns the value of theupvoteRatiorecord component.url()Returns the value of theurlrecord component.Returns the value of theurlOverriddenByDestrecord component.com.fasterxml.jackson.databind.node.ArrayNodeReturns the value of theuserReportsrecord component.Returns the value of theviewCountrecord component.visited()Returns the value of thevisitedrecord component.Returns the value of thewhitelistStatusrecord component.wls()Returns the value of thewlsrecord 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 aLinkrecord class.- Parameters:
approvedAtUtc- the value for theapprovedAtUtcrecord componentsubreddit- the value for thesubredditrecord componentselftext- the value for theselftextrecord componentauthorFullname- the value for theauthorFullnamerecord componentsaved- the value for thesavedrecord componentmodReasonTitle- the value for themodReasonTitlerecord componentgilded- the value for thegildedrecord componentclicked- the value for theclickedrecord componenttitle- the value for thetitlerecord componentlinkFlairRichtext- the value for thelinkFlairRichtextrecord componentsubredditNamePrefixed- the value for thesubredditNamePrefixedrecord componenthidden- the value for thehiddenrecord componentpwls- the value for thepwlsrecord componentlinkFlairCssClass- the value for thelinkFlairCssClassrecord componentdowns- the value for thedownsrecord componentthumbnailHeight- the value for thethumbnailHeightrecord componenttopAwardedType- the value for thetopAwardedTyperecord componenthideScore- the value for thehideScorerecord componentmediaMetadata- the value for themediaMetadatarecord componentname- the value for thenamerecord componentquarantine- the value for thequarantinerecord componentlinkFlairTextColor- the value for thelinkFlairTextColorrecord componentupvoteRatio- the value for theupvoteRatiorecord componentauthorFlairBackgroundColor- the value for theauthorFlairBackgroundColorrecord componentsubredditType- the value for thesubredditTyperecord componentups- the value for theupsrecord componenttotalAwardsReceived- the value for thetotalAwardsReceivedrecord componentmediaEmbed- the value for themediaEmbedrecord componentthumbnailWidth- the value for thethumbnailWidthrecord componentauthorFlairTemplateId- the value for theauthorFlairTemplateIdrecord componentisOriginalContent- the value for theisOriginalContentrecord componentuserReports- the value for theuserReportsrecord componentsecureMedia- the value for thesecureMediarecord componentisRedditMediaDomain- the value for theisRedditMediaDomainrecord componentisMeta- the value for theisMetarecord componentcategory- the value for thecategoryrecord componentsecureMediaEmbed- the value for thesecureMediaEmbedrecord componentgalleryData- the value for thegalleryDatarecord componentlinkFlairText- the value for thelinkFlairTextrecord componentcanModPost- the value for thecanModPostrecord componentscore- the value for thescorerecord componentapprovedBy- the value for theapprovedByrecord componentisCreatedFromAdsUi- the value for theisCreatedFromAdsUirecord componentauthorPremium- the value for theauthorPremiumrecord componentthumbnail- the value for thethumbnailrecord componentedited- the value for theeditedrecord componentauthorFlairCssClass- the value for theauthorFlairCssClassrecord componentauthorFlairRichtext- the value for theauthorFlairRichtextrecord componentgildings- the value for thegildingsrecord componentpostHint- the value for thepostHintrecord componentcontentCategories- the value for thecontentCategoriesrecord componentisSelf- the value for theisSelfrecord componentmodNote- the value for themodNoterecord componentcrosspostParentList- the value for thecrosspostParentListrecord componentcreated- the value for thecreatedrecord componentlinkFlairType- the value for thelinkFlairTyperecord componentwls- the value for thewlsrecord componentremovedByCategory- the value for theremovedByCategoryrecord componentbannedBy- the value for thebannedByrecord componentauthorFlairType- the value for theauthorFlairTyperecord componentdomain- the value for thedomainrecord componentallowLiveComments- the value for theallowLiveCommentsrecord componentselftextHtml- the value for theselftextHtmlrecord componentlikes- the value for thelikesrecord componentsuggestedSort- the value for thesuggestedSortrecord componentbannedAtUtc- the value for thebannedAtUtcrecord componenturlOverriddenByDest- the value for theurlOverriddenByDestrecord componentviewCount- the value for theviewCountrecord componentarchived- the value for thearchivedrecord componentnoFollow- the value for thenoFollowrecord componentisCrosspostable- the value for theisCrosspostablerecord componentpinned- the value for thepinnedrecord componentover18- the value for theover18record componentpreview- the value for thepreviewrecord componentallAwardings- the value for theallAwardingsrecord componentawarders- the value for theawardersrecord componentmediaOnly- the value for themediaOnlyrecord componentcanGild- the value for thecanGildrecord componentspoiler- the value for thespoilerrecord componentlocked- the value for thelockedrecord componentauthorFlairText- the value for theauthorFlairTextrecord componenttreatmentTags- the value for thetreatmentTagsrecord componentvisited- the value for thevisitedrecord componentremovedBy- the value for theremovedByrecord componentnumReports- the value for thenumReportsrecord componentdistinguished- the value for thedistinguishedrecord componentsubredditId- the value for thesubredditIdrecord componentauthorIsBlocked- the value for theauthorIsBlockedrecord componentmodReasonBy- the value for themodReasonByrecord componentremovalReason- the value for theremovalReasonrecord componentlinkFlairBackgroundColor- the value for thelinkFlairBackgroundColorrecord componentid- the value for theidrecord componentisRobotIndexable- the value for theisRobotIndexablerecord componentreportReasons- the value for thereportReasonsrecord componentauthor- the value for theauthorrecord componentdiscussionType- the value for thediscussionTyperecord componentnumComments- the value for thenumCommentsrecord componentsendReplies- the value for thesendRepliesrecord componentwhitelistStatus- the value for thewhitelistStatusrecord componentcontestMode- the value for thecontestModerecord componentmodReports- the value for themodReportsrecord componentauthorPatreonFlair- the value for theauthorPatreonFlairrecord componentauthorFlairTextColor- the value for theauthorFlairTextColorrecord componentpermalink- the value for thepermalinkrecord componentparentWhitelistStatus- the value for theparentWhitelistStatusrecord componentstickied- the value for thestickiedrecord componenturl- the value for theurlrecord componentsubredditSubscribers- the value for thesubredditSubscribersrecord componentcreatedUtc- the value for thecreatedUtcrecord componentnumCrossposts- the value for thenumCrosspostsrecord componentmedia- the value for themediarecord componentisVideo- the value for theisVideorecord component
-
-
Method Details
-
isNsfw
public boolean isNsfw()Checks if the post is marked as NSFW (not safe for work).- Returns:
trueif the post is NSFW,falseotherwise.
-
hasGalleryData
public boolean hasGalleryData()Checks if the post has a gallery associated with it.- Returns:
trueif the post has gallery data,falseotherwise.
-
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:
trueif the post has a post hint,falseotherwise.
-
compareTo
- Specified by:
compareToin 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 theapprovedAtUtcrecord component.- Returns:
- the value of the
approvedAtUtcrecord component
-
subreddit
Returns the value of thesubredditrecord component.- Returns:
- the value of the
subredditrecord component
-
selftext
Returns the value of theselftextrecord component.- Returns:
- the value of the
selftextrecord component
-
authorFullname
Returns the value of theauthorFullnamerecord component.- Returns:
- the value of the
authorFullnamerecord component
-
saved
Returns the value of thesavedrecord component.- Returns:
- the value of the
savedrecord component
-
modReasonTitle
Returns the value of themodReasonTitlerecord component.- Returns:
- the value of the
modReasonTitlerecord component
-
gilded
Returns the value of thegildedrecord component.- Returns:
- the value of the
gildedrecord component
-
clicked
Returns the value of theclickedrecord component.- Returns:
- the value of the
clickedrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
linkFlairRichtext
Returns the value of thelinkFlairRichtextrecord component.- Returns:
- the value of the
linkFlairRichtextrecord component
-
subredditNamePrefixed
Returns the value of thesubredditNamePrefixedrecord component.- Returns:
- the value of the
subredditNamePrefixedrecord component
-
pwls
Returns the value of thepwlsrecord component.- Returns:
- the value of the
pwlsrecord component
-
linkFlairCssClass
Returns the value of thelinkFlairCssClassrecord component.- Returns:
- the value of the
linkFlairCssClassrecord component
-
downs
Returns the value of thedownsrecord component.- Returns:
- the value of the
downsrecord component
-
thumbnailHeight
Returns the value of thethumbnailHeightrecord component.- Returns:
- the value of the
thumbnailHeightrecord component
-
topAwardedType
Returns the value of thetopAwardedTyperecord component.- Returns:
- the value of the
topAwardedTyperecord component
-
hideScore
Returns the value of thehideScorerecord component.- Returns:
- the value of the
hideScorerecord component
-
mediaMetadata
Returns the value of themediaMetadatarecord component.- Returns:
- the value of the
mediaMetadatarecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
quarantine
Returns the value of thequarantinerecord component.- Returns:
- the value of the
quarantinerecord component
-
linkFlairTextColor
Returns the value of thelinkFlairTextColorrecord component.- Returns:
- the value of the
linkFlairTextColorrecord component
-
upvoteRatio
Returns the value of theupvoteRatiorecord component.- Returns:
- the value of the
upvoteRatiorecord component
-
authorFlairBackgroundColor
Returns the value of theauthorFlairBackgroundColorrecord component.- Returns:
- the value of the
authorFlairBackgroundColorrecord component
-
subredditType
Returns the value of thesubredditTyperecord component.- Returns:
- the value of the
subredditTyperecord component
-
ups
Returns the value of theupsrecord component.- Returns:
- the value of the
upsrecord component
-
totalAwardsReceived
Returns the value of thetotalAwardsReceivedrecord component.- Returns:
- the value of the
totalAwardsReceivedrecord component
-
mediaEmbed
Returns the value of themediaEmbedrecord component.- Returns:
- the value of the
mediaEmbedrecord component
-
thumbnailWidth
Returns the value of thethumbnailWidthrecord component.- Returns:
- the value of the
thumbnailWidthrecord component
-
authorFlairTemplateId
Returns the value of theauthorFlairTemplateIdrecord component.- Returns:
- the value of the
authorFlairTemplateIdrecord component
-
isOriginalContent
Returns the value of theisOriginalContentrecord component.- Returns:
- the value of the
isOriginalContentrecord component
-
userReports
public com.fasterxml.jackson.databind.node.ArrayNode userReports()Returns the value of theuserReportsrecord component.- Returns:
- the value of the
userReportsrecord component
-
secureMedia
Returns the value of thesecureMediarecord component.- Returns:
- the value of the
secureMediarecord component
-
isRedditMediaDomain
Returns the value of theisRedditMediaDomainrecord component.- Returns:
- the value of the
isRedditMediaDomainrecord component
-
isMeta
Returns the value of theisMetarecord component.- Returns:
- the value of the
isMetarecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
secureMediaEmbed
Returns the value of thesecureMediaEmbedrecord component.- Returns:
- the value of the
secureMediaEmbedrecord component
-
galleryData
Returns the value of thegalleryDatarecord component.- Returns:
- the value of the
galleryDatarecord component
-
linkFlairText
Returns the value of thelinkFlairTextrecord component.- Returns:
- the value of the
linkFlairTextrecord component
-
canModPost
Returns the value of thecanModPostrecord component.- Returns:
- the value of the
canModPostrecord component
-
score
Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
approvedBy
Returns the value of theapprovedByrecord component.- Returns:
- the value of the
approvedByrecord component
-
isCreatedFromAdsUi
Returns the value of theisCreatedFromAdsUirecord component.- Returns:
- the value of the
isCreatedFromAdsUirecord component
-
authorPremium
Returns the value of theauthorPremiumrecord component.- Returns:
- the value of the
authorPremiumrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
edited
Returns the value of theeditedrecord component.- Returns:
- the value of the
editedrecord component
-
authorFlairCssClass
Returns the value of theauthorFlairCssClassrecord component.- Returns:
- the value of the
authorFlairCssClassrecord component
-
authorFlairRichtext
Returns the value of theauthorFlairRichtextrecord component.- Returns:
- the value of the
authorFlairRichtextrecord component
-
gildings
Returns the value of thegildingsrecord component.- Returns:
- the value of the
gildingsrecord component
-
postHint
Returns the value of thepostHintrecord component.- Returns:
- the value of the
postHintrecord component
-
contentCategories
Returns the value of thecontentCategoriesrecord component.- Returns:
- the value of the
contentCategoriesrecord component
-
isSelf
Returns the value of theisSelfrecord component.- Returns:
- the value of the
isSelfrecord component
-
modNote
Returns the value of themodNoterecord component.- Returns:
- the value of the
modNoterecord component
-
crosspostParentList
Returns the value of thecrosspostParentListrecord component.- Returns:
- the value of the
crosspostParentListrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
linkFlairType
Returns the value of thelinkFlairTyperecord component.- Returns:
- the value of the
linkFlairTyperecord component
-
wls
Returns the value of thewlsrecord component.- Returns:
- the value of the
wlsrecord component
-
removedByCategory
Returns the value of theremovedByCategoryrecord component.- Returns:
- the value of the
removedByCategoryrecord component
-
bannedBy
Returns the value of thebannedByrecord component.- Returns:
- the value of the
bannedByrecord component
-
authorFlairType
Returns the value of theauthorFlairTyperecord component.- Returns:
- the value of the
authorFlairTyperecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
allowLiveComments
Returns the value of theallowLiveCommentsrecord component.- Returns:
- the value of the
allowLiveCommentsrecord component
-
selftextHtml
Returns the value of theselftextHtmlrecord component.- Returns:
- the value of the
selftextHtmlrecord component
-
likes
Returns the value of thelikesrecord component.- Returns:
- the value of the
likesrecord component
-
suggestedSort
Returns the value of thesuggestedSortrecord component.- Returns:
- the value of the
suggestedSortrecord component
-
bannedAtUtc
Returns the value of thebannedAtUtcrecord component.- Returns:
- the value of the
bannedAtUtcrecord component
-
urlOverriddenByDest
Returns the value of theurlOverriddenByDestrecord component.- Returns:
- the value of the
urlOverriddenByDestrecord component
-
viewCount
Returns the value of theviewCountrecord component.- Returns:
- the value of the
viewCountrecord component
-
archived
Returns the value of thearchivedrecord component.- Returns:
- the value of the
archivedrecord component
-
noFollow
Returns the value of thenoFollowrecord component.- Returns:
- the value of the
noFollowrecord component
-
isCrosspostable
Returns the value of theisCrosspostablerecord component.- Returns:
- the value of the
isCrosspostablerecord component
-
pinned
Returns the value of thepinnedrecord component.- Returns:
- the value of the
pinnedrecord component
-
over18
Returns the value of theover18record component.- Returns:
- the value of the
over18record component
-
preview
Returns the value of thepreviewrecord component.- Returns:
- the value of the
previewrecord component
-
allAwardings
Returns the value of theallAwardingsrecord component.- Returns:
- the value of the
allAwardingsrecord component
-
awarders
public com.fasterxml.jackson.databind.node.ArrayNode awarders()Returns the value of theawardersrecord component.- Returns:
- the value of the
awardersrecord component
-
mediaOnly
Returns the value of themediaOnlyrecord component.- Returns:
- the value of the
mediaOnlyrecord component
-
canGild
Returns the value of thecanGildrecord component.- Returns:
- the value of the
canGildrecord component
-
spoiler
Returns the value of thespoilerrecord component.- Returns:
- the value of the
spoilerrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
authorFlairText
Returns the value of theauthorFlairTextrecord component.- Returns:
- the value of the
authorFlairTextrecord component
-
treatmentTags
public com.fasterxml.jackson.databind.node.ArrayNode treatmentTags()Returns the value of thetreatmentTagsrecord component.- Returns:
- the value of the
treatmentTagsrecord component
-
visited
Returns the value of thevisitedrecord component.- Returns:
- the value of the
visitedrecord component
-
removedBy
Returns the value of theremovedByrecord component.- Returns:
- the value of the
removedByrecord component
-
numReports
Returns the value of thenumReportsrecord component.- Returns:
- the value of the
numReportsrecord component
-
distinguished
Returns the value of thedistinguishedrecord component.- Returns:
- the value of the
distinguishedrecord component
-
subredditId
Returns the value of thesubredditIdrecord component.- Returns:
- the value of the
subredditIdrecord component
-
authorIsBlocked
Returns the value of theauthorIsBlockedrecord component.- Returns:
- the value of the
authorIsBlockedrecord component
-
modReasonBy
Returns the value of themodReasonByrecord component.- Returns:
- the value of the
modReasonByrecord component
-
removalReason
Returns the value of theremovalReasonrecord component.- Returns:
- the value of the
removalReasonrecord component
-
linkFlairBackgroundColor
Returns the value of thelinkFlairBackgroundColorrecord component.- Returns:
- the value of the
linkFlairBackgroundColorrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
isRobotIndexable
Returns the value of theisRobotIndexablerecord component.- Returns:
- the value of the
isRobotIndexablerecord component
-
reportReasons
Returns the value of thereportReasonsrecord component.- Returns:
- the value of the
reportReasonsrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
discussionType
Returns the value of thediscussionTyperecord component.- Returns:
- the value of the
discussionTyperecord component
-
numComments
Returns the value of thenumCommentsrecord component.- Returns:
- the value of the
numCommentsrecord component
-
sendReplies
Returns the value of thesendRepliesrecord component.- Returns:
- the value of the
sendRepliesrecord component
-
whitelistStatus
Returns the value of thewhitelistStatusrecord component.- Returns:
- the value of the
whitelistStatusrecord component
-
contestMode
Returns the value of thecontestModerecord component.- Returns:
- the value of the
contestModerecord component
-
modReports
public com.fasterxml.jackson.databind.node.ArrayNode modReports()Returns the value of themodReportsrecord component.- Returns:
- the value of the
modReportsrecord component
-
authorPatreonFlair
Returns the value of theauthorPatreonFlairrecord component.- Returns:
- the value of the
authorPatreonFlairrecord component
-
authorFlairTextColor
Returns the value of theauthorFlairTextColorrecord component.- Returns:
- the value of the
authorFlairTextColorrecord component
-
permalink
Returns the value of thepermalinkrecord component.- Returns:
- the value of the
permalinkrecord component
-
parentWhitelistStatus
Returns the value of theparentWhitelistStatusrecord component.- Returns:
- the value of the
parentWhitelistStatusrecord component
-
stickied
Returns the value of thestickiedrecord component.- Returns:
- the value of the
stickiedrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
subredditSubscribers
Returns the value of thesubredditSubscribersrecord component.- Returns:
- the value of the
subredditSubscribersrecord component
-
createdUtc
Returns the value of thecreatedUtcrecord component.- Returns:
- the value of the
createdUtcrecord component
-
numCrossposts
Returns the value of thenumCrosspostsrecord component.- Returns:
- the value of the
numCrosspostsrecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
isVideo
Returns the value of theisVideorecord component.- Returns:
- the value of the
isVideorecord component
-